Use new CMake policies up to 3.29
This silences most warnings about overriding /W3 with /wrelease/4.3a0
parent
e08064d9e7
commit
885959a36b
|
@ -1,23 +1,8 @@
|
||||||
cmake_minimum_required(VERSION 3.9)
|
cmake_minimum_required(VERSION 3.9...3.29)
|
||||||
if (POLICY CMP0082)
|
|
||||||
cmake_policy(SET CMP0082 NEW) # install from sub-directories immediately
|
|
||||||
endif()
|
|
||||||
if (POLICY CMP0102)
|
|
||||||
cmake_policy(SET CMP0102 NEW) # set policy on advanced variables and cmake cache
|
|
||||||
endif()
|
|
||||||
if (POLICY CMP0156)
|
|
||||||
cmake_policy(SET CMP0156 NEW) # new linker strategies
|
|
||||||
endif()
|
|
||||||
if (POLICY CMP0167)
|
if (POLICY CMP0167)
|
||||||
cmake_policy(SET CMP0167 OLD) # Don't complain about boost
|
cmake_policy(SET CMP0167 OLD) # Don't complain about boost
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# allow parent project to override options
|
|
||||||
if (POLICY CMP0077)
|
|
||||||
cmake_policy(SET CMP0077 NEW)
|
|
||||||
endif(POLICY CMP0077)
|
|
||||||
|
|
||||||
|
|
||||||
# Set the version number for the library
|
# Set the version number for the library
|
||||||
set (GTSAM_VERSION_MAJOR 4)
|
set (GTSAM_VERSION_MAJOR 4)
|
||||||
set (GTSAM_VERSION_MINOR 3)
|
set (GTSAM_VERSION_MINOR 3)
|
||||||
|
|
Loading…
Reference in New Issue