From 730a1b83fe02e6249c20cbdd24b0c097c7c57b49 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Mon, 23 Mar 2026 10:37:41 +0100 Subject: deps: disable clang-tidy when not preinstalled --- CMakeLists.txt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 71e4fef..febcf0e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -98,10 +98,12 @@ else() find_package("Catch2") include("Catch") - set_target_properties("Catch2" "Catch2WithMain" PROPERTIES - C_CLANG_TIDY "" - CXX_CLANG_TIDY "" - ) + if(TARGET "Catch2" AND TARGET "Catch2WithMain") + set_target_properties("Catch2" "Catch2WithMain" PROPERTIES + C_CLANG_TIDY "" + CXX_CLANG_TIDY "" + ) + endif() add_subdirectory("libs") endif() -- cgit v1.2.3