From 3491625dc2fbd3fbf65245a04364289ecb709c5d Mon Sep 17 00:00:00 2001 From: Rick Altherr Date: Wed, 15 Nov 2017 15:13:59 -0800 Subject: [PATCH] Avoid building third_party targets unless explicitly asked for Any explicit dependencies on a third_party library will cause that target to get built. This commit only removes the targets from the implicit "all" target. Signed-off-by: Rick Altherr Signed-off-by: Tim 'mithro' Ansell --- CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b4f34d18..2483ca25 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,9 +7,9 @@ set(CMAKE_CXX_FLAGS "-std=c++11 -Wall -Werror ${CMAKE_CXX_FLAGS} -O3" ) # Hack for missing option in cctz option(BUILD_TESTING "" OFF) -add_subdirectory(third_party/googletest) -add_subdirectory(third_party/gflags) -add_subdirectory(third_party/cctz) -add_subdirectory(third_party/abseil-cpp) +add_subdirectory(third_party/googletest EXCLUDE_FROM_ALL) +add_subdirectory(third_party/gflags EXCLUDE_FROM_ALL) +add_subdirectory(third_party/cctz EXCLUDE_FROM_ALL) +add_subdirectory(third_party/abseil-cpp EXCLUDE_FROM_ALL) add_subdirectory(tools)