From f273c62553636640242b0c76ac3de99e9e93d626 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Valverde?= Date: Sun, 23 May 2021 19:44:07 +0100 Subject: CMake: Enable LTO/IPO support for all platforms --- CMakeOptions.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'CMakeOptions.txt') 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 -- cgit v1.2.3