mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2024-12-05 00:38:00 +01:00
cmake: make LTO optional
This commit is contained in:
parent
23da896077
commit
379ba8f629
1 changed files with 2 additions and 1 deletions
|
@ -142,7 +142,8 @@ if (NOT LIBSUPERDERPY_CONFIG_INCLUDED)
|
|||
endif()
|
||||
endif()
|
||||
|
||||
if(POLICY CMP0069)
|
||||
option(LIBSUPERDERPY_LTO "Use link-time optimization" OFF)
|
||||
if(POLICY CMP0069 AND LIBSUPERDERPY_LTO)
|
||||
if(NOT USE_CLANG_TIDY AND NOT MINGW) # clang-tidy + GCC + LTO = errors; also, MinGW crashes
|
||||
cmake_policy(SET CMP0069 NEW)
|
||||
include(CheckIPOSupported)
|
||||
|
|
Loading…
Reference in a new issue