Skip to content

Commit 96c1e47

Browse files
authored
Merge pull request swiftlang#34449 from apple/build-Use-llvm-matching-value-for-CMake-policy-CMP0077
[build] Use llvm matching value for CMake policy CMP0077
2 parents f24ddb0 + 6387a7b commit 96c1e47

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)