Skip to content

Commit

Permalink
Merge pull request #268 from FeignClaims/fix/lto_in_clang_18
Browse files Browse the repository at this point in the history
fix: Enable policy 137 for check_ipo_supported()
  • Loading branch information
aminya authored Jun 20, 2024
2 parents 2f9199c + ddebf6f commit 3108d5e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Index.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ if(CMAKE_VERSION VERSION_GREATER_EQUAL "3.24.0")
# fix DOWNLOAD_EXTRACT_TIMESTAMP warning in FetchContent
cmake_policy(SET CMP0135 NEW)
# make CheckIPOSupported prefer to honor the calling project's flags
# this fixes check_ipo_supported() to find clang-scan-deps correctly
cmake_policy(SET CMP0137 NEW)
cmake_policy(SET CMP0138 NEW)
endif()

Expand Down

0 comments on commit 3108d5e

Please sign in to comment.