Skip to content

Commit e47e6d1

Browse files
committed
🔧 only enable inter-procedural optimization per default for Release builds outside of deployment
Signed-off-by: burgholzer <burgholzer@me.com>
1 parent fc6bb4b commit e47e6d1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎cmake/StandardProjectSettings.cmake

+2-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ if(DEPLOY)
5757
CACHE STRING "" FORCE)
5858
endif()
5959

60-
if(NOT DEPLOY)
60+
# try to enable inter-procedural optimization per default for Release builds outside of deployment
61+
if(NOT DEPLOY AND CMAKE_BUILD_TYPE STREQUAL "Release")
6162
option(ENABLE_IPO "Enable Interprocedural Optimization, aka Link Time Optimization (LTO)" ON)
6263
else()
6364
option(ENABLE_IPO "Enable Interprocedural Optimization, aka Link Time Optimization (LTO)" OFF)

0 commit comments

Comments
 (0)