From 4b65af355930e2a6e5cdaea729a11a7cc8cbd0c9 Mon Sep 17 00:00:00 2001 From: Chris Dyer Date: Wed, 8 Jul 2015 02:21:46 +0000 Subject: ignore system boost if BOOST_ROOT is set --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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}) -- cgit v1.2.3