From ddebf6f9ef223b030872e74e4df79c44af3a98c8 Mon Sep 17 00:00:00 2001 From: FeignClaims Date: Thu, 20 Jun 2024 19:16:53 +0800 Subject: [PATCH] fix: Enable policy 137 for check_ipo_supported() --- src/Index.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Index.cmake b/src/Index.cmake index 94d4b936..899348f9 100644 --- a/src/Index.cmake +++ b/src/Index.cmake @@ -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()