Skip to content

Commit

Permalink
CMake set CMP0144
Browse files Browse the repository at this point in the history
Fixes #2208
  • Loading branch information
dweindl committed Nov 20, 2023
1 parent 3330ccb commit 8e98624
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
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)

project(amici)

# misc options
Expand Down
5 changes: 5 additions & 0 deletions src/CMakeLists.template.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
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)

project(TPL_MODELNAME)

set(CMAKE_CXX_STANDARD 17)
Expand Down

0 comments on commit 8e98624

Please sign in to comment.