From 63f2d89271cf6c32d70b4f02493cf8aadbbf2726 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zdenko=20Podobn=C3=BD?= Date: Thu, 10 Mar 2022 16:24:06 +0100 Subject: [PATCH] cmake: enable link-time optimization by default --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 117ce528..d281aace 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -86,7 +86,7 @@ endif() option(OPENMP_BUILD "Build with openmp support" OFF) # see issue #1662 option(GRAPHICS_DISABLED "Disable disable graphics (ScrollView)" OFF) option(DISABLED_LEGACY_ENGINE "Disable the legacy OCR engine" OFF) -option(ENABLE_LTO "Enable link-time optimization" OFF) +option(ENABLE_LTO "Enable link-time optimization" ON) option(FAST_FLOAT "Enable float for LSTM" ON) option(BUILD_TRAINING_TOOLS "Build training tools" ON) option(BUILD_TESTS "Build tests" OFF)