Skip to content

Commit

Permalink
check policy CMP0169
Browse files Browse the repository at this point in the history
  • Loading branch information
radkesvat committed Aug 12, 2024
1 parent 0b8b534 commit f7120ac
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
Expand Up @@ -20,9 +20,11 @@ set(CMAKE_CXX_STANDARD_REQUIRED TRUE CACHE BOOL "request not to use lower versio
# [cmake] OLD to allow FetchContent_Populate(komihash) to be called directly for now,
# [cmake] but the ability to call it with declared details will be removed completely
# [cmake] in a future version.
cmake_policy(SET CMP0169 OLD)
set(CMAKE_POLICY_DEFAULT_CMP0169 OLD)

if(POLICY CMP0169)
cmake_policy(SET CMP0169 OLD)
set(CMAKE_POLICY_DEFAULT_CMP0169 OLD)
endif()

if(CMAKE_BUILD_TYPE STREQUAL "Release")
cmake_policy(SET CMP0069 NEW)
Expand Down

0 comments on commit f7120ac

Please sign in to comment.