Skip to content

Commit 3108d5e

Browse files
authored
Merge pull request #268 from FeignClaims/fix/lto_in_clang_18
fix: Enable policy 137 for check_ipo_supported()
2 parents 2f9199c + ddebf6f commit 3108d5e

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)