From: Kefu Chai Date: Sun, 9 Sep 2018 07:48:14 +0000 (+0800) Subject: cmake: always add ${Boost_INCLUDE_DIRS} to include dirs X-Git-Tag: v14.0.1~301^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=195470a295a1bef2170ed40e8b5e896ec39b83f4;p=ceph.git cmake: always add ${Boost_INCLUDE_DIRS} to include dirs we need to -I${Boost_INCLUDE_DIRS} if WITH_SYSTEM_BOOST=ON and boost is found by FindBoost.cmake. Signed-off-by: Kefu Chai --- diff --git a/CMakeLists.txt b/CMakeLists.txt index c1314ee712f..379e0df8ee7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -640,8 +640,8 @@ else() include(BuildBoost) build_boost(1.67 COMPONENTS ${BOOST_COMPONENTS} ${BOOST_HEADER_COMPONENTS}) - include_directories(BEFORE SYSTEM ${Boost_INCLUDE_DIRS}) endif() +include_directories(BEFORE SYSTEM ${Boost_INCLUDE_DIRS}) set(Boost_USE_MULTITHREADED ON) # dashboard angular2 frontend