Skip to content

Commit

Permalink
Fix fetch method causing test-drive tests to be included in CTest list (
Browse files Browse the repository at this point in the history
  • Loading branch information
topherocity authored Jun 4, 2022
1 parent a1ab785 commit 68e22b8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -96,5 +96,7 @@ install(
)

# add the testsuite
enable_testing()
add_subdirectory("test")
include(CTest)
if(BUILD_TESTING AND TEST_DRIVE_BUILD_TESTING)
add_subdirectory("test")
endif()
1 change: 1 addition & 0 deletions config/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# limitations under the License.

option(BUILD_SHARED_LIBS "Whether the libraries built should be shared" FALSE)
option(TEST_DRIVE_BUILD_TESTING "Enable testing for this project" ON)

set(
module-dir
Expand Down

0 comments on commit 68e22b8

Please # to comment.