Skip to content

Commit 2154b64

Browse files
committed
Add LTO
1 parent 2cdf591 commit 2154b64

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ project("UnityHubNative")
44
set(CMAKE_INSTALL_PREFIX ${CMAKE_CURRENT_BINARY_DIR})
55
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/$<CONFIGURATION>)
66
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/$<CONFIGURATION>)
7+
# link time optimization
8+
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION_RELEASE TRUE CACHE INTERNAL "") # only enable on release
79

810
option(BUILD_SHARED_LIBS OFF "Build static")
911

0 commit comments

Comments
 (0)