diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2026-03-23 10:37:41 +0100 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2026-03-23 10:37:41 +0100 |
| commit | 730a1b83fe02e6249c20cbdd24b0c097c7c57b49 (patch) | |
| tree | d7cbc5faa48091ca3b3b8091e8464ccc239f77c3 | |
| parent | c95c6392174f1bde1ccbedf8396f83cf6efadd5f (diff) | |
| download | teachos-730a1b83fe02e6249c20cbdd24b0c097c7c57b49.tar.xz teachos-730a1b83fe02e6249c20cbdd24b0c097c7c57b49.zip | |
deps: disable clang-tidy when not preinstalled
| -rw-r--r-- | CMakeLists.txt | 10 |
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() |
