Set policies

release/4.3a0
Frank Dellaert 2024-08-29 15:32:26 -07:00
parent ae42379867
commit 7b96d1e325
2 changed files with 5 additions and 1 deletions

View File

@ -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)

View File

@ -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