Skip to content

Commit

Permalink
cmake new policy under ifdef
Browse files Browse the repository at this point in the history
  • Loading branch information
superg committed Dec 7, 2023
1 parent 95a88dc commit 6c3fecf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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")
Expand Down

0 comments on commit 6c3fecf

Please sign in to comment.