aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeOptions.txt
diff options
context:
space:
mode:
authorJohn Thacker <johnthacker@gmail.com>2022-04-21 20:19:56 -0400
committerJohn Thacker <johnthacker@gmail.com>2022-04-21 20:24:52 -0400
commit3407992cb4205ff24c713797a938302405570619 (patch)
tree061fcafaa33d6551d6946a0d40b57655b53eadee /CMakeOptions.txt
parent4bb16383a3f514cff9cc7cac650a1d0c441466de (diff)
CMake: Bump minimum CMake version to 3.10
Linux distributions that have a version less than 3.10 are either almost at end of support (Debian Stretch), or will be supported by Wireshark 3.6 LTS (RHEL 7, SLES 12). The Windows minimum is already 3.13. Increasing the minimum required means that policies CMP0069 and CMP0071 are automatically set to NEW, and we can use VERSION_GREATER_EQUAL. Fix an error in the Qt version comparison; it's Qt 5.14 that first required macOS 10.13 High Sierra, not Qt 5.15.
Diffstat (limited to 'CMakeOptions.txt')
-rw-r--r--CMakeOptions.txt4
1 files changed, 1 insertions, 3 deletions
diff --git a/CMakeOptions.txt b/CMakeOptions.txt
index e077965440..4a117f88ee 100644
--- a/CMakeOptions.txt
+++ b/CMakeOptions.txt
@@ -66,9 +66,7 @@ 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 "Use Link Time Optimization (release configuration only)" OFF)
-endif()
+option(ENABLE_LTO "Use Link Time Optimization (release configuration only)" OFF)
if(WIN32)
option(ENABLE_VLD "Enable Visual Leak Detect in Debug configuration" OFF)