commit 5f0ca8efe41bfb33bd86b08d7471e425656d57de
Author: Kornel Benko <[email protected]>
Date: Wed Jun 17 00:26:51 2020 +0200
Cmake build: Do not overwrite the cache if nothing changes.
One of possibly more places .
---
CMakeLists.txt | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 552654b..7fbdcc4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -140,9 +140,11 @@ LYX_OPTION(ENABLE_URLTESTS "Enable for URL tests" OFF ALL)
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)
+ LYX_OPTION(ENABLE_VALGRIND_TESTS "Enable for tests involving valgrind" OFF
ALL)
else()
-unset(LYX_ENABLE_VALGRIND_TESTS CACHE)
+ if (LYX_ENABLE_VALGRIND_TESTS)
+ unset(LYX_ENABLE_VALGRIND_TESTS CACHE)
+ endif()
endif()
LYX_OPTION(ASAN "Use address sanitizer" OFF ALL)
#LYX_COMBO(USE_FILEDIALOG "Use native or QT file dialog" QT NATIVE)
--
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs