[lto] Set CMP0069 to force optimizations and give errors if the compiler does not know
All checks were successful
eden-license / license-header (pull_request) Successful in 21s

https://cmake.org/cmake/help/latest/policy/CMP0069.html

Signed-off-by: Caio Oliveira <caiooliveirafarias0@gmail.com>
This commit is contained in:
Caio Oliveira 2025-09-25 11:38:36 -03:00
parent df29466cbb
commit f1d1757d41
Signed by: DraVee
GPG key ID: 362DA3DC1901E080

View file

@ -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)