CMake and Boost 1.66

* Inline Boost cmake to allow for boost 1.66

* added custom flag -DBOOST_CUSTOM to use in source FindBoost.cmake
This commit is contained in:
Russel Waters 2018-01-17 20:17:18 -05:00 committed by androm3da
commit 8fd47b20dc
2 changed files with 2001 additions and 1 deletions

View file

@ -14,7 +14,7 @@ set (RAIBLOCKS_TEST OFF CACHE BOOL "")
option(RAIBLOCKS_ASAN_INT "Enable ASan+UBSan+Integer overflow" OFF)
option(RAIBLOCKS_ASAN "Enable ASan+UBSan" OFF)
option(RAIBLOCKS_SIMD_OPTIMIZATIONS "Enable CPU-specific SIMD optimizations (SSE/AVX or NEON, e.g.)" OFF)
set (BOOST_CUSTOM OFF CACHE BOOL "")
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the type of build, options are: Debug Release RelWithDebInfo MinSizeRel." FORCE)
@ -102,6 +102,11 @@ include_directories (${CMAKE_SOURCE_DIR})
set(Boost_USE_STATIC_LIBS ON)
set(Boost_USE_MULTITHREADED ON)
if (BOOST_CUSTOM)
list(APPEND CMAKE_MODULE_PATH ".\\" ${CMAKE_SOURCE_PATH})
endif (BOOST_CUSTOM)
find_package (Boost 1.66.0 REQUIRED COMPONENTS date_time filesystem system log log_setup thread program_options regex chrono atomic)
include_directories (${Boost_INCLUDE_DIR})

1995
FindBoost.cmake Normal file

File diff suppressed because it is too large Load diff