From 25898a9c7ad258a152f3116d7326151d37ad868b Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 17 Mar 2024 13:50:39 +0100 Subject: [PATCH] Enable LTO. --- cmake/config.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmake/config.cmake b/cmake/config.cmake index 3b565108..afbca26d 100644 --- a/cmake/config.cmake +++ b/cmake/config.cmake @@ -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()