aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeOptions.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeOptions.txt')
-rw-r--r--CMakeOptions.txt6
1 files changed, 2 insertions, 4 deletions
diff --git a/CMakeOptions.txt b/CMakeOptions.txt
index 1beeb99f56..7296f16b01 100644
--- a/CMakeOptions.txt
+++ b/CMakeOptions.txt
@@ -63,10 +63,8 @@ else()
option(ENABLE_COMPILER_COLOR_DIAGNOSTICS "Always enable the compiler's color diagnostic output" OFF)
endif()
-if(WIN32)
- option(ENABLE_LTO "Improves performance using Link Time Optimization" ON)
-elseif(CMAKE_VERSION VERSION_GREATER "3.8.99")
- option(ENABLE_LTO "Improves performance using Link Time Optimization" OFF)
+if(CMAKE_VERSION VERSION_GREATER "3.8.99")
+ option(ENABLE_LTO "Use Link Time Optimization (release configuration only)" OFF)
endif()
if(WIN32)