From: Kornel Benko Date: Tue, 7 Apr 2020 12:16:07 +0000 (+0200) Subject: Cmake tests: Amend 353295e4 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=40f179757fec7494a9b4e2d2f20950b2fa8241f2;p=features.git Cmake tests: Amend 353295e4 Prevent also the command-line setting of LYX_ENABLE_VALGRIND_TESTS for the cmake versions < 3.17 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index d206d55f00..72a8cd7215 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -141,6 +141,8 @@ LYX_OPTION(ENABLE_EXPORT_TESTS "Enable for export tests" OFF ALL) LYX_OPTION(ENABLE_KEYTESTS "Enable for keytests" OFF ALL) if (NOT CMAKE_VERSION VERSION_LESS "3.17") LYX_OPTION(ENABLE_VALGRIND_TESTS "Enable for tests involving valgrind" OFF ALL) +else() +unset(LYX_ENABLE_VALGRIND_TESTS CACHE) endif() LYX_OPTION(ASAN "Use address sanitizer" OFF ALL) #LYX_COMBO(USE_FILEDIALOG "Use native or QT file dialog" QT NATIVE)