We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bfaf5c commit c3f4c2bCopy full SHA for c3f4c2b
components/core/CMakeLists.txt
@@ -21,6 +21,15 @@ if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
21
set(CMAKE_BUILD_TYPE "${default_build_type}" CACHE STRING "Choose the type of build." FORCE)
22
endif()
23
24
+if (CMAKE_BUILD_TYPE MATCHES "Release")
25
+ include(CheckIPOSupported)
26
+ check_ipo_supported(RESULT IPO_SUPPORTED OUTPUT)
27
+ if(IPO_SUPPORTED)
28
+ message(STATUS "Link-time optimization enabled.")
29
+ set(CMAKE_INTERPROCEDURAL_OPTIMIZATION ON)
30
+ endif()
31
+endif()
32
+
33
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
34
35
# Set general compressor
0 commit comments