Skip to content

Commit

Permalink
Merge pull request #89 from k-okada/support_old_boost
Browse files Browse the repository at this point in the history
fix to work boost 1.34
  • Loading branch information
fkanehiro committed Jan 9, 2016
2 parents c22fa5a + 663211d commit ba81685
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,12 @@ set(Boost_ADDITIONAL_VERSIONS "1.42" "1.42.0" "1.43" "1.43.0" "1.44" "1.44.0" "1
endif()
find_package(Boost 1.35.0 REQUIRED )
elseif(UNIX)
find_package(Boost 1.36.0 REQUIRED COMPONENTS filesystem signals system regex program_options)
find_package(Boost 1.35.0 QUIET)
if(Boost_FOUND)
find_package(Boost 1.35.0 REQUIRED COMPONENTS filesystem signals system regex program_options)
else()
find_package(Boost 1.34.0 REQUIRED COMPONENTS filesystem signals regex program_options)
endif()
if(NOT Boost_FOUND)
set(BOOST_ROOT ${BOOST_ROOT} CACHE PATH "set the directory of the boost library")
message(FATAL_ERROR "Boost cannot be found. Please specify the boost top directory to BOOST_ROOT.")
Expand Down

0 comments on commit ba81685

Please sign in to comment.