Set policies
parent
ae42379867
commit
7b96d1e325
|
@ -1,4 +1,8 @@
|
|||
cmake_minimum_required(VERSION 3.5)
|
||||
cmake_policy(SET CMP0082 NEW) # install from sub-directories immediately
|
||||
cmake_policy(SET CMP0102 NEW) # set policy on advanced variables and cmake cache
|
||||
cmake_policy(SET CMP0156 NEW) # new linker strategies
|
||||
cmake_policy(SET CMP0167 OLD) # Don't complain about boost
|
||||
|
||||
# Set the version number for the library
|
||||
set (GTSAM_VERSION_MAJOR 4)
|
||||
|
|
|
@ -25,7 +25,7 @@ endif()
|
|||
set(BOOST_FIND_MINIMUM_VERSION 1.65)
|
||||
set(BOOST_FIND_MINIMUM_COMPONENTS serialization system filesystem thread program_options date_time timer chrono regex)
|
||||
|
||||
find_package(Boost ${BOOST_FIND_MINIMUM_VERSION} COMPONENTS ${BOOST_FIND_MINIMUM_COMPONENTS})
|
||||
find_package(Boost ${BOOST_FIND_MINIMUM_VERSION} COMPONENTS ${BOOST_FIND_MINIMUM_COMPONENTS} REQUIRED)
|
||||
|
||||
# Required components
|
||||
if(NOT Boost_SERIALIZATION_LIBRARY OR NOT Boost_SYSTEM_LIBRARY OR NOT Boost_FILESYSTEM_LIBRARY OR
|
||||
|
|
Loading…
Reference in New Issue