From b905fb739fbd901a7dcb81742143237c0108d7ae Mon Sep 17 00:00:00 2001 From: Gleb Mazovetskiy Date: Sat, 28 Sep 2019 16:44:18 +0100 Subject: [PATCH] CMake: Enable LTO for the release build --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 85606d6ba..b400e17b3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,6 +26,7 @@ if(BINARY_RELEASE) set(DEBUG OFF) set(DIST ON) set(FASTER OFF) + set(CMAKE_INTERPROCEDURAL_OPTIMIZATION ON) endif() if(NIGHTLY_BUILD)