]> git.lyx.org Git - features.git/commitdiff
Cmake tests: Amend 353295e4
authorKornel Benko <kornel@lyx.org>
Tue, 7 Apr 2020 12:16:07 +0000 (14:16 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 13:48:55 +0000 (15:48 +0200)
Prevent also the command-line setting of LYX_ENABLE_VALGRIND_TESTS
for the cmake versions < 3.17

CMakeLists.txt

index d206d55f00ee65cf6df50d2fef854ab205e58fd3..72a8cd7215644bc54607b58017a05e25b174f84f 100644 (file)
@@ -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)