From a4f2e5b331862e63bf15a201bfb8c1c261bb8b66 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Tue, 30 Aug 2022 20:01:17 +0200 Subject: [PATCH] external_boost is only needed as a columnstore dependency it should not be added to the 'all' target --- cmake/boost.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmake/boost.cmake b/cmake/boost.cmake index 76d35191d..2b3a129de 100644 --- a/cmake/boost.cmake +++ b/cmake/boost.cmake @@ -22,7 +22,8 @@ FOREACH(name chrono filesystem program_options regex system thread) ADD_DEPENDENCIES(${lib} external_boost) SET (loc "${Boost_LIBRARY_DIRS}/${CMAKE_STATIC_LIBRARY_PREFIX}${lib}${CMAKE_STATIC_LIBRARY_SUFFIX}") SET(byproducts ${byproducts} BUILD_BYPRODUCTS ${loc}) - SET_TARGET_PROPERTIES(${lib} PROPERTIES IMPORTED_LOCATION ${loc}) + SET_TARGET_PROPERTIES(${lib} PROPERTIES IMPORTED_LOCATION ${loc} + EXCLUDE_FROM_ALL TRUE) ENDFOREACH() ExternalProject_Add(external_boost @@ -36,5 +37,6 @@ ExternalProject_Add(external_boost INSTALL_COMMAND ./b2 -q install ${_b2args} LOG_BUILD TRUE LOG_INSTALL TRUE + EXCLUDE_FROM_ALL TRUE ${byproducts} )