Skip to content

Commit

Permalink
ignore system boost if BOOST_ROOT is set
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Dyer committed Jul 8, 2015
1 parent 752e978 commit 4b65af3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit 4b65af3

Please sign in to comment.