diff options
Diffstat (limited to 'lib/CMakeLists.txt')
-rw-r--r-- | lib/CMakeLists.txt | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index 9f07eb4..0873b00 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -24,10 +24,12 @@ FetchContent_Declare( add_subdirectory(GSL) -FetchContent_Declare( - doctest - GIT_REPOSITORY "https://github.com/doctest/doctest" - GIT_TAG v2.4.8 -) - -add_subdirectory(doctest) +if("${TESTING}") + FetchContent_Declare( + doctest + GIT_REPOSITORY "https://github.com/doctest/doctest" + GIT_TAG v2.4.8 + ) + + add_subdirectory(doctest) +endif() |