aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeOptions.txt
diff options
context:
space:
mode:
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>2021-05-24 21:58:50 +0100
committerWireshark GitLab Utility <gerald+gitlab-utility@wireshark.org>2021-05-24 21:23:45 +0000
commit92269631a73f67a77c50aa0591495bde32e9efb3 (patch)
treec1a84ac0ef14ae89a994fbbb1fbcebdc6cbdfdb1 /CMakeOptions.txt
parent02f4dcb0ad13fd3b671c212aec739be96ca2dc41 (diff)
CMake: Disable LTO again by default
After some experimentation results with GCC and clang seem poor, compilation times are terrible and I don't feel confident enabling it by default yet. More testing is needed.
Diffstat (limited to 'CMakeOptions.txt')
-rw-r--r--CMakeOptions.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/CMakeOptions.txt b/CMakeOptions.txt
index 6bf4ad0cf4..d58bdfd0d1 100644
--- a/CMakeOptions.txt
+++ b/CMakeOptions.txt
@@ -63,13 +63,13 @@ else()
option(ENABLE_COMPILER_COLOR_DIAGNOSTICS "Always enable the compiler's color diagnostic output" OFF)
endif()
-if(CMAKE_VERSION VERSION_GREATER "3.8.99")
- option(ENABLE_LTO "Improves performance using Link time Optimization" ON)
-else()
- option(ENABLE_LTO "Improves performance using Link time Optimization" OFF)
+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)
endif()
-if (WIN32)
+if(WIN32)
option(ENABLE_VLD "Enable Visual Leak Detect in Debug configuration" OFF)
endif()