Skip to content

Commit

Permalink
CMake: Set CMP0167 (#2480)
Browse files Browse the repository at this point in the history
  • Loading branch information
dweindl authored Jul 8, 2024
1 parent 837e70b commit ba2a117
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ cmake_policy(VERSION 3.15...3.27)
if(POLICY CMP0144)
cmake_policy(SET CMP0144 NEW)
endif(POLICY CMP0144)
# cmake >= 3.30
if(POLICY CMP0167)
cmake_policy(SET CMP0167 NEW)
endif(POLICY CMP0167)

project(amici)

Expand Down
11 changes: 11 additions & 0 deletions swig/CMakeLists_model.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
cmake_minimum_required(VERSION 3.15)
cmake_policy(VERSION 3.15...3.27)

# cmake >=3.27
if(POLICY CMP0144)
cmake_policy(SET CMP0144 NEW)
endif(POLICY CMP0144)
# cmake >= 3.30
if(POLICY CMP0167)
cmake_policy(SET CMP0167 NEW)
endif(POLICY CMP0167)


if(DEFINED ENV{SWIG})
set(SWIG_EXECUTABLE $ENV{SWIG})
Expand Down

0 comments on commit ba2a117

Please sign in to comment.