aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeOptions.txt
diff options
context:
space:
mode:
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>2021-05-23 19:44:07 +0100
committerWireshark GitLab Utility <gerald+gitlab-utility@wireshark.org>2021-05-24 15:58:16 +0000
commitf273c62553636640242b0c76ac3de99e9e93d626 (patch)
treed80f4ab23b0eeaa04f6f3cc8cc0636721c1f6c6b /CMakeOptions.txt
parent54e6b249c116c65289d2a248b558d359b23db75f (diff)
CMake: Enable LTO/IPO support for all platforms
Diffstat (limited to 'CMakeOptions.txt')
-rw-r--r--CMakeOptions.txt7
1 files changed, 5 insertions, 2 deletions
diff --git a/CMakeOptions.txt b/CMakeOptions.txt
index 9db67cc54c..6bf4ad0cf4 100644
--- a/CMakeOptions.txt
+++ b/CMakeOptions.txt
@@ -63,13 +63,16 @@ else()
option(ENABLE_COMPILER_COLOR_DIAGNOSTICS "Always enable the compiler's color diagnostic output" OFF)
endif()
-if (WIN32)
+if(CMAKE_VERSION VERSION_GREATER "3.8.99")
option(ENABLE_LTO "Improves performance using Link time Optimization" ON)
- option(ENABLE_VLD "Enable Visual Leak Detect in Debug configuration" OFF)
else()
option(ENABLE_LTO "Improves performance using Link time Optimization" OFF)
endif()
+if (WIN32)
+ option(ENABLE_VLD "Enable Visual Leak Detect in Debug configuration" OFF)
+endif()
+
option(ENABLE_PCAP "Enable libpcap support (required for capturing)" ON)
#
# AirPcap support is available only on Windows. It might be nice to have it