Skip to content

Commit

Permalink
CMake: Test policy existence directly
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdnyc authored Nov 25, 2023
1 parent c20954f commit 6789789
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ endif()

# With MSVC, don't automatically append /W3 to the compiler flags.
# This makes it possible for the user to select /W4.
if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.15")
if(POLICY CMP0092)
cmake_policy(SET CMP0092 NEW)
endif()

Expand Down

0 comments on commit 6789789

Please sign in to comment.