Skip to content

Commit

Permalink
Do not run tests when used as dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
RauliL committed Oct 11, 2024
1 parent 5e2969e commit 4b6841b
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 @@ -71,5 +71,7 @@ INSTALL(
include
)

ENABLE_TESTING()
ADD_SUBDIRECTORY(test)
IF(CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
ENABLE_TESTING()
ADD_SUBDIRECTORY(test)
ENDIF()

0 comments on commit 4b6841b

Please sign in to comment.