Skip to content

Commit

Permalink
fix(tests): Add enable_testing() call when tests are enabled
Browse files Browse the repository at this point in the history
This fixes VSCode and other tools not detecting tests.
  • Loading branch information
DNedic committed Dec 20, 2023
1 parent 9cf87b8 commit b362c44
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@ endif()
# Only build tests if we're actually working on the library,
# not when the library is being used in a project
if(CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
enable_testing()
add_subdirectory(tests)
endif()

0 comments on commit b362c44

Please sign in to comment.