From b06bafe3cd55b892e42c49635dacff61503220dd Mon Sep 17 00:00:00 2001 From: Chris Hennes Date: Tue, 23 Sep 2025 17:46:18 -0500 Subject: [PATCH] libE57Format: Check for IPO before enabling --- src/3rdParty/libE57Format/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/3rdParty/libE57Format/CMakeLists.txt b/src/3rdParty/libE57Format/CMakeLists.txt index b0aec3aeaf..b087e8530e 100644 --- a/src/3rdParty/libE57Format/CMakeLists.txt +++ b/src/3rdParty/libE57Format/CMakeLists.txt @@ -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 )