Merge pull request #1818 from borglab/frank/cmake

Update cmake
release/4.3a0
Frank Dellaert 2024-08-29 16:41:01 -07:00 committed by GitHub
commit 508b5fd6b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 3 deletions

View File

@ -1,4 +1,8 @@
cmake_minimum_required(VERSION 3.0)
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

View File

@ -1,7 +1,7 @@
# This file shows how to build and link a user project against GTSAM using CMake
###################################################################################
# To create your own project, replace "example" with the actual name of your project
cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.5)
project(example CXX)
# Find GTSAM, either from a local build, or from a Debian/Ubuntu package.