Skip to content

Commit

Permalink
Fix older CMake versions
Browse files Browse the repository at this point in the history
  • Loading branch information
tresf committed Jul 16, 2023
1 parent 0e6d02e commit 249b332
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ IF(COMMAND CMAKE_POLICY)
ENDIF()
CMAKE_POLICY(SET CMP0020 NEW)
CMAKE_POLICY(SET CMP0057 NEW)
CMAKE_POLICY(SET CMP0074 NEW)
# TODO: Keep CMP0074 but remove this condition when cmake 3.12+ is guaranteed
IF(${CMAKE_VERSION} VERSION_GREATER_EQUAL 3.12)
CMAKE_POLICY(SET CMP0074 NEW)
ENDIF()
ENDIF(COMMAND CMAKE_POLICY)


Expand Down

0 comments on commit 249b332

Please sign in to comment.