]> git.lyx.org Git - features.git/blobdiff - 3rdparty/mythes/CMakeLists.txt
Check layout type when inserting inset over selection
[features.git] / 3rdparty / mythes / CMakeLists.txt
index d970ef23c337abc3d03ff4d07efe289ec1223a41..869bee7c93769987d3de546435a62011cedc5b57 100644 (file)
@@ -1,13 +1,14 @@
 cmake_minimum_required(VERSION 3.1)
 
+set(LYX_IPO_SUPPORTED FALSE)
 if (POLICY CMP0069)
-  if (LYX_DEBUG)
-    cmake_policy(SET CMP0069 OLD)
-  else()
-    cmake_policy(SET CMP0069 NEW)
+  cmake_policy(SET CMP0069 NEW)
+  if (LYX_USE_IPO MATCHES "ON")
+    set(LYX_IPO_SUPPORTED YES)
   endif()
 endif()
 
+
 set(VERSION "1.2.5")
 set(SRCDIR ${CMAKE_CURRENT_SOURCE_DIR}/${VERSION})
 
@@ -27,4 +28,6 @@ set(MYTHESLIB_LIBRARY mytheslibstatic CACHE STRING "Mytheslib library" FORCE)
 set(MYTHESLIB_INCLUDE_DIR  ${SRCDIR} CACHE STRING "Mytheslib include dir" FORCE)
 set(MYTHESLIB_FOUND CACHE STRING "Mytheslib found" FORCE )
 
-set_target_properties(mytheslibstatic PROPERTIES FOLDER "3rd_party")
+set_target_properties(mytheslibstatic PROPERTIES
+       FOLDER "3rd_party"
+       INTERPROCEDURAL_OPTIMIZATION ${LYX_IPO_SUPPORTED})