Skip to content

Commit b153676

Browse files
authored
Merge pull request #126 from cwpearson/fix/top-level-ctest
allow ctest to run from the top level build
2 parents 8e177a9 + 0a5a137 commit b153676

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,11 @@ endif()
4545

4646
add_subdirectory(src)
4747
if(KOKKOSCOMM_ENABLE_TESTS)
48+
enable_testing() # so we can run ctest at the top-level build dir
4849
add_subdirectory(unit_tests)
4950
endif()
5051
if(KOKKOSCOMM_ENABLE_PERFTESTS)
52+
enable_testing() # so we can run ctest at the top-level build dir
5153
add_subdirectory(perf_tests)
5254
endif()
5355

0 commit comments

Comments
 (0)