diff options
author | Chris Dyer <cdyer@master> | 2015-07-08 02:21:46 +0000 |
---|---|---|
committer | Chris Dyer <cdyer@master> | 2015-07-08 02:21:46 +0000 |
commit | 4b65af355930e2a6e5cdaea729a11a7cc8cbd0c9 (patch) | |
tree | fc26fca021f2b57dec51bb07bde9faeddb9d6e23 | |
parent | 752e978a9cec51cfbb8d8acd9b70b8b21e588ca6 (diff) |
ignore system boost if BOOST_ROOT is set
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 9ebebf17..19e3cfd4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,7 +12,9 @@ include_directories(${CMAKE_CURRENT_BINARY_DIR}) # core packages find_package(LibDL REQUIRED) -set(Boost_NO_SYSTEM_PATHS ON) +if(DEFINED ENV{BOOST_ROOT}) + set(Boost_NO_SYSTEM_PATHS ON) +endif() set(Boost_REALPATH ON) find_package(Boost COMPONENTS regex filesystem serialization program_options unit_test_framework system thread REQUIRED) include_directories(${Boost_INCLUDE_DIR}) |