Skip to content

Commit 5577b50

Browse files
committed
chore(build): only build tests when standalone
1 parent b08f28e commit 5577b50

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,9 @@ include(lib/system/cmake/system.cmake)
2222

2323
add_subdirectory(lib)
2424
add_subdirectory(common)
25-
add_subdirectory(test)
2625
add_subdirectory(vendor)
26+
27+
# Only build tests when standalone
28+
if(CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR)
29+
add_subdirectory(test)
30+
endif()

0 commit comments

Comments
 (0)