From ec6192b309f3c6caa22ab0eff8ce5be37782af88 Mon Sep 17 00:00:00 2001 From: River <26424577+wusatosi@users.noreply.github.com> Date: Thu, 14 Nov 2024 15:48:05 -0500 Subject: [PATCH] conditional include of ctest --- CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9e73ca3..cacf1cf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,11 +23,12 @@ option( ${PROJECT_IS_TOP_LEVEL} ) -include(CTest) -include(FetchContent) include(GNUInstallDirs) if(BEMAN_EXEMPLAR_BUILD_TESTING) + include(CTest) + include(FetchContent) + enable_testing() # Fetch GoogleTest