From 063e3242b4f12ecfe5d979be1c6294150d994466 Mon Sep 17 00:00:00 2001 From: emeric Date: Tue, 21 Jan 2025 13:56:19 +0100 Subject: [PATCH] Enable link time optims for non debug builds --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6cb75ea9..53c0e351 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -50,6 +50,7 @@ endif() if (NOT CMAKE_BUILD_TYPE STREQUAL "Debug") add_definitions(-DNDEBUG) + set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE) endif() add_subdirectory(src)