]> git.lyx.org Git - features.git/blobdiff - 3rdparty/zlib/CMakeLists.txt
Allow removing words from the personal dictionary, that weren't previously added.
[features.git] / 3rdparty / zlib / CMakeLists.txt
index a8ca489369aaefcf5b5eda6682ea18e31567b769..e81e43af1cbf878c3deda40e425b4a679010a721 100644 (file)
@@ -1,7 +1,14 @@
 cmake_minimum_required(VERSION 3.1)
 
+set(LYX_IPO_SUPPORTED FALSE)
 if (POLICY CMP0069)
   cmake_policy(SET CMP0069 NEW)
+  if (LYX_USE_IPO MATCHES "ON")
+    set(LYX_IPO_SUPPORTED YES)
+  endif()
+endif()
+if (POLICY CMP0075)
+  cmake_policy(SET CMP0075 NEW)
 endif()
 
 set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS ON)
@@ -163,4 +170,6 @@ set(ZLIB_LIBRARY zlibstatic CACHE STRING "Zlib library" FORCE)
 set(ZLIB_INCLUDE_DIR  ${SRCDIR} CACHE STRING "Zlib include dir" FORCE)
 set(ZLIB_FOUND CACHE STRING "Zlib found" FORCE )
 
-set_target_properties(zlibstatic PROPERTIES FOLDER "3rd_party")
+set_target_properties(zlibstatic PROPERTIES
+       FOLDER "3rd_party"
+       INTERPROCEDURAL_OPTIMIZATION ${LYX_IPO_SUPPORTED})