Skip to content

Commit 962e132

Browse files
committed
add lto
1 parent a4be468 commit 962e132

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

rpp/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,12 @@ target_compile_definitions(rpp PUBLIC
7070
$<$<CONFIG:MinSizeRel>:RPP_RELEASE_BUILD>
7171
)
7272

73+
set_property(TARGET rpp PROPERTY INTERPROCEDURAL_OPTIMIZATION
74+
$<$<CONFIG:Debug>:FALSE>
75+
$<$<CONFIG:RelWithDebInfo>:FALSE>
76+
$<$<CONFIG:Release>:TRUE>
77+
$<$<CONFIG:MinSizeRel>:TRUE>)
78+
7379
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
7480
set(CLANG TRUE)
7581
endif()

0 commit comments

Comments
 (0)