Cmake tests: Amend 353295e4

Prevent also the command-line setting of LYX_ENABLE_VALGRIND_TESTS
for the cmake versions < 3.17
This commit is contained in:
Kornel Benko 2020-04-07 14:16:07 +02:00
parent 353295e499
commit 278c26b1a6

View 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) LYX_OPTION(ENABLE_KEYTESTS "Enable for keytests" OFF ALL)
if (NOT CMAKE_VERSION VERSION_LESS "3.17") if (NOT CMAKE_VERSION VERSION_LESS "3.17")
LYX_OPTION(ENABLE_VALGRIND_TESTS "Enable for tests involving valgrind" OFF ALL) LYX_OPTION(ENABLE_VALGRIND_TESTS "Enable for tests involving valgrind" OFF ALL)
else()
unset(LYX_ENABLE_VALGRIND_TESTS CACHE)
endif() endif()
LYX_OPTION(ASAN "Use address sanitizer" OFF ALL) LYX_OPTION(ASAN "Use address sanitizer" OFF ALL)
#LYX_COMBO(USE_FILEDIALOG "Use native or QT file dialog" QT NATIVE) #LYX_COMBO(USE_FILEDIALOG "Use native or QT file dialog" QT NATIVE)