Skip to content
This repository has been archived by the owner on Nov 5, 2023. It is now read-only.

Commit

Permalink
Moving include(CTest) into 'if testing' guard
Browse files Browse the repository at this point in the history
  • Loading branch information
jrepp authored and alkurbatov committed Oct 7, 2023
1 parent da838e5 commit d814cc2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -573,8 +573,10 @@ endif()
add_subdirectory(src)

# Enable the testing of the library/executable
include(CTest)

if (CIVETWEB_BUILD_TESTING)
include(CTest)

# Check unit testing framework Version
set(CIVETWEB_CHECK_VERSION 0.11.0 CACHE STRING
"The version of Check unit testing framework to build and include statically")
Expand Down

0 comments on commit d814cc2

Please sign in to comment.