ref: 216aec7caf5bfd0e85153f38ac9186726868703a
parent: 84cc01b8f0172250846ee2a03bdedc50055e9339
author: Clownacy <Clownacy@users.noreply.github.com>
date: Sat Mar 14 16:19:48 EDT 2020
Clean-up CMake LTO Honestly, considering the user can enable LTO by setting CMAKE_INTERPROCEDURAL_OPTIMIZATION, I might remove this option too...
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -209,12 +209,12 @@
# Enable link-time optimisation if available
if(LTO)
- if((${CMAKE_VERSION} VERSION_EQUAL 3.9) OR (${CMAKE_VERSION} VERSION_GREATER 3.9))
- include(CheckIPOSupported)
- check_ipo_supported(RESULT result)
- if(result)
- set_target_properties(CSE2 PROPERTIES INTERPROCEDURAL_OPTIMIZATION TRUE)
- endif()
+ include(CheckIPOSupported)
+
+ check_ipo_supported(RESULT result)
+
+ if(result)
+ set_target_properties(CSE2 PROPERTIES INTERPROCEDURAL_OPTIMIZATION TRUE)
endif()
endif()