libE57Format: Check for IPO before enabling
This commit is contained in:
6
src/3rdParty/libE57Format/CMakeLists.txt
vendored
6
src/3rdParty/libE57Format/CMakeLists.txt
vendored
@@ -132,6 +132,12 @@ else()
|
||||
add_library( E57Format STATIC ${E57Format_SOURCES})
|
||||
endif()
|
||||
|
||||
include(CheckIPOSupported)
|
||||
check_ipo_supported(RESULT ipo_ok OUTPUT ipo_msg)
|
||||
if(NOT ipo_ok)
|
||||
set(E57_RELEASE_LTO Off)
|
||||
endif()
|
||||
|
||||
include( E57ExportHeader )
|
||||
include( GitUpdate )
|
||||
|
||||
|
||||
Reference in New Issue
Block a user