]> git.lyx.org Git - lyx.git/blobdiff - CMakeLists.txt
ctest update: we now work around a problem with Czech or Slovak text in some tables.
[lyx.git] / CMakeLists.txt
index e4e278908412406ba14faee3417a2613f7496dfc..f759d8f45bdeb314939bf5e1b75169b24cd2f2c2 100644 (file)
@@ -81,16 +81,12 @@ if(NOT help AND NOT HELP)
       message(FATAL_ERROR "Exiting")
     endif()
   endif()
-  # Enable LTO if supported
+  # Enable LTO if supported and not debugging
   if (POLICY CMP0069)
-    cmake_policy(SET CMP0069 NEW)
-    include(CheckIPOSupported)
-    check_ipo_supported(RESULT result OUTPUT reason LANGUAGES CXX)
-    if(result)
-      message(STATUS "Setting IPO True")
-      set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE)
+    if (LYX_DEBUG)
+      cmake_policy(SET CMP0069 OLD)
     else()
-      message(STATUS "Not setting IPO , result = ${result}, reason = ${reason}")
+      cmake_policy(SET CMP0069 NEW)
     endif()
   endif()
 endif()