Skip to content

Commit 02ed9f5

Browse files
committed
build: correct invocation of cmake_policy
The first parameter needs to be either `SET` or `GET`. In this case, we are trying to set the policy to NEW, so pass the correct parameter.
1 parent 17a0575 commit 02ed9f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ list(APPEND CMAKE_MODULE_PATH
77
# NOTE(compnerd) enable CMP0091 - select MSVC runtime based on
88
# CMAKE_MSVC_RUNTIME_LIBRARY. Requires CMake 3.15 or newer
99
if(POLICY CMP0091)
10-
cmake_policy(CMP0091 NEW)
10+
cmake_policy(SET CMP0091 NEW)
1111
endif()
1212

1313
project(Foundation

0 commit comments

Comments
 (0)