Skip to content

Commit

Permalink
sta: only add test subdirectory if tests enabled.
Browse files Browse the repository at this point in the history
Fixes: #6453

Signed-off-by: Henner Zeller <[email protected]>
  • Loading branch information
hzeller committed Jan 1, 2025
1 parent 7fb347f commit 77defcd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/dbSta/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@
###############################################################################

add_subdirectory(src)
add_subdirectory(test)
add_subdirectory(test)
6 changes: 3 additions & 3 deletions src/dbSta/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ or_integration_tests(
foreach(TEST_NAME IN LISTS TEST_NAMES)
or_integration_test("dbSta" ${TEST_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/regression)
endforeach()

add_subdirectory(cpp)

if(ENABLE_TESTS)
add_subdirectory(cpp)
endif()

0 comments on commit 77defcd

Please sign in to comment.