diff --git a/CMakeLists.txt b/CMakeLists.txt index a31104b47e..d6f08a5097 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 diff --git a/src/CMakeLists.template.cmake b/src/CMakeLists.template.cmake index f015a78638..43df61ff61 100644 --- a/src/CMakeLists.template.cmake +++ b/src/CMakeLists.template.cmake @@ -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)