Definitely disable using system boost if version doesn't match

master
Hamish Milne 2019-12-28 23:36:12 +07:00 committed by zhupengfei
parent d041901a30
commit a0ac302a93
1 changed files with 1 additions and 1 deletions

@ -132,7 +132,7 @@ if (NOT Boost_FOUND)
set(BOOST_ROOT "${PROJECT_SOURCE_DIR}/externals/boost") set(BOOST_ROOT "${PROJECT_SOURCE_DIR}/externals/boost")
set(Boost_INCLUDE_DIR "${CMAKE_SOURCE_DIR}/externals/boost") set(Boost_INCLUDE_DIR "${CMAKE_SOURCE_DIR}/externals/boost")
set(Boost_NO_SYSTEM_PATHS OFF) set(Boost_NO_SYSTEM_PATHS ON)
add_definitions( -DBOOST_ALL_NO_LIB ) add_definitions( -DBOOST_ALL_NO_LIB )
find_package(Boost QUIET REQUIRED) find_package(Boost QUIET REQUIRED)