aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
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()