From 5157c414f5e225da8cb84a0cf4f9c2b8d942b74d Mon Sep 17 00:00:00 2001 From: fallenoak Date: Fri, 26 Dec 2025 13:08:24 -0600 Subject: [PATCH] chore(build): only build tests when standalone --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d2d2609..b380767 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -97,4 +97,8 @@ if(WHOA_TEST_STORMDLL) else() add_subdirectory(storm) endif() -add_subdirectory(test) + +# Only build tests when standalone +if(CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR) + add_subdirectory(test) +endif()