diff --git a/CMakeLists.txt b/CMakeLists.txt index 03c15e4..7593406 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,8 @@ cmake_minimum_required(VERSION 3.26) -# enable scan imports in 3.28 while supporting 3.26 -cmake_policy(SET CMP0155 NEW) +# enable scan imports in 3.28 while supporting 3.26, remove after all GitHub Actions runner images update to 3.28 +if(CMAKE_VERSION VERSION_GREATER_EQUAL "3.28.0") + cmake_policy(SET CMP0155 NEW) +endif() # project / version set(REDUMPER_PROJECT_NAME "redumper" CACHE STRING "Project name")