From 23b073237e6e321f7deaba65a810b187a84be0a0 Mon Sep 17 00:00:00 2001 From: Bassam Tabbara Date: Thu, 18 May 2017 00:32:59 -0700 Subject: [PATCH] cmake: fix boost components for WITH_SYSTEM_BOOST when using WITH_SYSTEM_BOOST dont set header-only packages for BOOST_COMPONENTS. On some distros these packages dont exist. Signed-off-by: Bassam Tabbara --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index af4641553fd..005c8567ef8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -512,7 +512,9 @@ endif() option(WITH_SYSTEM_BOOST "require and build with system Boost" OFF) set(BOOST_COMPONENTS - container thread system regex random program_options date_time iostreams coroutine context) + thread system regex random program_options date_time iostreams coroutine context) +set(BOOST_HEADER_COMPONENTS container) + if(WITH_MGR) list(APPEND BOOST_COMPONENTS python) endif() @@ -532,6 +534,7 @@ else() set(BOOST_SOURCE_DIR "${PROJECT_SOURCE_DIR}/src/boost") set(BOOST_PREFIX "${PROJECT_BINARY_DIR}/boost") set(BOOST_BUILD "${PROJECT_BINARY_DIR}/boost-build") + list(APPEND BOOST_COMPONENTS ${BOOST_HEADER_COMPONENTS}) string(REPLACE ";" "," BOOST_WITH_LIBS "${BOOST_COMPONENTS}") execute_process(COMMAND "./bootstrap.sh" "--prefix=${BOOST_PREFIX}" -- 2.47.3