Browse Source

[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 <caiooliveirafarias0@gmail.com>
pull/2523/head
Caio Oliveira 6 months ago
parent
commit
f1d1757d41
No known key found for this signature in database GPG Key ID: 362DA3DC1901E080
  1. 1
      CMakeLists.txt

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

Loading…
Cancel
Save