From 7b6c2fe0b9ceaf8e427973be751ceec1f0efc586 Mon Sep 17 00:00:00 2001 From: "Jeffrey N. Johnson" Date: Thu, 12 Mar 2026 10:52:25 -0700 Subject: [PATCH] Checking for existence of some targets before creating --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 41308c8..c763996 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -143,7 +143,7 @@ message(STATUS "Installation prefix is ${CMAKE_INSTALL_PREFIX}") add_subdirectory(ext) # Support for valgrind (Linux only). -if (UNIX AND NOT APPLE) +if (UNIX AND NOT APPLE AND NOT TARGET memcheck) find_program(VALGRIND_EXE valgrind) if (NOT VALGRIND_EXE MATCHES "NOTFOUND") set(MEMORYCHECK_COMMAND ${Valgrind_EXE})