diff options
| -rw-r--r-- | CMakeLists.txt | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 6ac3df0e0..3932fd569 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
| @@ -118,12 +118,11 @@ else() | |||
| 118 | endif() | 118 | endif() |
| 119 | 119 | ||
| 120 | find_package(Boost 1.57.0 QUIET) | 120 | find_package(Boost 1.57.0 QUIET) |
| 121 | if (Boost_FOUND) | 121 | if (NOT Boost_FOUND) |
| 122 | include_directories(${Boost_INCLUDE_DIRS}) | ||
| 123 | else() | ||
| 124 | message(STATUS "Boost 1.57.0 or newer not found, falling back to externals") | 122 | message(STATUS "Boost 1.57.0 or newer not found, falling back to externals") |
| 125 | include_directories(externals/boost) | 123 | set(Boost_INCLUDE_DIR "${CMAKE_SOURCE_DIR}/externals/boost") |
| 126 | endif() | 124 | endif() |
| 125 | include_directories(${Boost_INCLUDE_DIR}) | ||
| 127 | 126 | ||
| 128 | # Include bundled CMake modules | 127 | # Include bundled CMake modules |
| 129 | list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/externals/cmake-modules") | 128 | list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/externals/cmake-modules") |