From f1d1757d41c402e115e34059e866524d3cfc896c Mon Sep 17 00:00:00 2001 From: Caio Oliveira Date: Thu, 25 Sep 2025 11:38:36 -0300 Subject: [PATCH] [lto] Set CMP0069 to force optimizations and give errors if the compiler does not know https://cmake.org/cmake/help/latest/policy/CMP0069.html Signed-off-by: Caio Oliveira --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6c9530459a..ab01bfd17f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -198,6 +198,7 @@ CMAKE_DEPENDENT_OPTION(YUZU_CRASH_DUMPS "Compile crash dump (Minidump) support" option(YUZU_ENABLE_LTO "Enable link-time optimization" OFF) if(YUZU_ENABLE_LTO) + cmake_policy(SET CMP0069 NEW) include(CheckIPOSupported) check_ipo_supported(RESULT COMPILER_SUPPORTS_LTO) if(NOT COMPILER_SUPPORTS_LTO)