summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt4
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})