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 and ebiggers committed Nov 25, 2023
1 parent c20954f commit d4539a6
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 d4539a6

Please sign in to comment.