]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: always add ${Boost_INCLUDE_DIRS} to include dirs
authorKefu Chai <kchai@redhat.com>
Sun, 9 Sep 2018 07:48:14 +0000 (15:48 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 11 Sep 2018 14:22:47 +0000 (22:22 +0800)
we need to -I${Boost_INCLUDE_DIRS} if WITH_SYSTEM_BOOST=ON and boost is
found by FindBoost.cmake.

Signed-off-by: Kefu Chai <kchai@redhat.com>
CMakeLists.txt

index c1314ee712fb6c2b642c0ed76fc0a3c73ef9d4c5..379e0df8ee7bcd2754288473c336341da0201693 100644 (file)
@@ -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