From 148a379333711b7c75d3e520b1a6129be7c6ef7a Mon Sep 17 00:00:00 2001 From: Ian Bell Date: Sun, 5 Jan 2025 11:16:34 -0500 Subject: [PATCH] Kill off another Catch2 inclusion To avoid bringing in its targets --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ff28ad2..5e68237 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -133,7 +133,7 @@ target_include_directories(teqpinterface INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/ target_include_directories(teqpinterface INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/externals/REFPROP-interop/include") target_include_directories(teqpinterface INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/externals/stbrumme-hashing/include") -if (NOT TEQP_NO_TESTS) +if ((NOT TEQP_NO_TESTS) AND PROJECT_IS_TOP_LEVEL) add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/externals/Catch2") endif()