aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-03-23 10:37:41 +0100
committerFelix Morgner <felix.morgner@ost.ch>2026-03-23 10:37:41 +0100
commit730a1b83fe02e6249c20cbdd24b0c097c7c57b49 (patch)
treed7cbc5faa48091ca3b3b8091e8464ccc239f77c3 /CMakeLists.txt
parentc95c6392174f1bde1ccbedf8396f83cf6efadd5f (diff)
downloadteachos-730a1b83fe02e6249c20cbdd24b0c097c7c57b49.tar.xz
teachos-730a1b83fe02e6249c20cbdd24b0c097c7c57b49.zip
deps: disable clang-tidy when not preinstalled
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt10
1 files 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()