Skip to content

Commit

Permalink
also only add_test() if top-level
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickbr committed Oct 9, 2024
1 parent bc41023 commit 43d5d78
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,10 @@ endif()
add_subdirectory(src)

# tests
add_test("utilTest" utilTest)
add_test("spatialjoinTest" spatialjoinTest)
if(PROJECT_IS_TOP_LEVEL)
add_test("utilTest" utilTest)
add_test("spatialjoinTest" spatialjoinTest)
endif()

# install target
install(
Expand Down

0 comments on commit 43d5d78

Please sign in to comment.