From 07acb9832ae10c3eeb5c9f7ad0b2c498b8c33af0 Mon Sep 17 00:00:00 2001 From: Caio Oliveira Date: Mon, 29 Sep 2025 19:10:59 -0300 Subject: [PATCH] cmake: lto: Set CMP0069 default behavior to NEW * as stated on https://cmake.org/cmake/help/latest/policy/CMP0069.html * and should reduce warnings * picked from ninja-build/ninja Signed-off-by: Caio Oliveira --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2bb023ace5..6717a19931 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -205,6 +205,7 @@ if(YUZU_ENABLE_LTO) if(NOT COMPILER_SUPPORTS_LTO) message(FATAL_ERROR "Your compiler does not support interprocedural optimization (IPO). Re-run CMake with -DYUZU_ENABLE_LTO=OFF.") endif() + set(CMAKE_POLICY_DEFAULT_CMP0069 NEW) set(CMAKE_INTERPROCEDURAL_OPTIMIZATION ${COMPILER_SUPPORTS_LTO}) endif()