Skip to content

Commit

Permalink
Merge pull request #1820 from borglab/fix/cmake-policies
Browse files Browse the repository at this point in the history
Check if cmake policy exists
  • Loading branch information
jlblancoc authored Aug 30, 2024
2 parents ae7c93b + e698073 commit c3842bb
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
cmake_minimum_required(VERSION 3.5)
cmake_policy(SET CMP0082 NEW) # install from sub-directories immediately
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)
cmake_policy(SET CMP0167 OLD) # Don't complain about boost
endif()

# Set the version number for the library
set (GTSAM_VERSION_MAJOR 4)
Expand Down

0 comments on commit c3842bb

Please sign in to comment.