Skip to content

Commit 6387a7b

Browse files
committed
[build] Use llvm matching value for CMake policy CMP0077
1 parent 3a1b9cd commit 6387a7b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CMakeLists.txt

+5
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ if(POLICY CMP0076)
1717
cmake_policy(SET CMP0076 NEW)
1818
endif()
1919

20+
# Don't clobber existing variable values when evaluating `option()` declarations.
21+
if(POLICY CMP0077)
22+
cmake_policy(SET CMP0077 NEW)
23+
endif()
24+
2025
# Add path for custom CMake modules.
2126
list(APPEND CMAKE_MODULE_PATH
2227
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules")

0 commit comments

Comments
 (0)