Enable LTO.

This commit is contained in:
Bartosz Taudul 2024-03-17 13:50:39 +01:00
parent 4bfd6f42bc
commit 25898a9c7a
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -24,3 +24,7 @@ endif()
if(WIN32)
add_definitions(-DNOMINMAX -DWIN32_LEAN_AND_MEAN)
endif()
if(NOT CMAKE_BUILD_TYPE STREQUAL "Debug")
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION ON)
endif()