Skip to content

Commit

Permalink
add lto
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNumbat committed Jan 15, 2024
1 parent a4be468 commit 962e132
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ target_compile_definitions(rpp PUBLIC
$<$<CONFIG:MinSizeRel>:RPP_RELEASE_BUILD>
)

set_property(TARGET rpp PROPERTY INTERPROCEDURAL_OPTIMIZATION
$<$<CONFIG:Debug>:FALSE>
$<$<CONFIG:RelWithDebInfo>:FALSE>
$<$<CONFIG:Release>:TRUE>
$<$<CONFIG:MinSizeRel>:TRUE>)

if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
set(CLANG TRUE)
endif()
Expand Down

0 comments on commit 962e132

Please sign in to comment.