Skip to content

Commit ddebf6f

Browse files
committed
fix: Enable policy 137 for check_ipo_supported()
1 parent 2f9199c commit ddebf6f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Index.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ if(CMAKE_VERSION VERSION_GREATER_EQUAL "3.24.0")
88
# fix DOWNLOAD_EXTRACT_TIMESTAMP warning in FetchContent
99
cmake_policy(SET CMP0135 NEW)
1010
# make CheckIPOSupported prefer to honor the calling project's flags
11+
# this fixes check_ipo_supported() to find clang-scan-deps correctly
12+
cmake_policy(SET CMP0137 NEW)
1113
cmake_policy(SET CMP0138 NEW)
1214
endif()
1315

0 commit comments

Comments
 (0)