diff --git a/CMakeLists.txt b/CMakeLists.txt index 89b37418..f1be3f59 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -41,7 +41,9 @@ project(Catch2 LANGUAGES CXX VERSION 3.0.0) list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/CMake") include(GNUInstallDirs) include(CMakePackageConfigHelpers) -include(CTest) +if(CATCH_DEVELOPMENT_BUILD) + include(CTest) +endif() # This variable is used in some subdirectories, so we need it here, rather # than later in the install block