From a468d5c4388ddae2b1dcaa10c849b9098f8257b0 Mon Sep 17 00:00:00 2001 From: Richard Peters Date: Fri, 6 Oct 2023 09:51:29 +0200 Subject: [PATCH] Only include CTest when building the pugixml tests --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d3f810e0..48bc75fc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,7 +10,6 @@ project(pugixml VERSION 1.14 LANGUAGES CXX) include(CMakePackageConfigHelpers) include(CMakeDependentOption) include(GNUInstallDirs) -include(CTest) cmake_dependent_option(PUGIXML_USE_VERSIONED_LIBDIR "Use a private subdirectory to install the headers and libraries" OFF @@ -240,6 +239,7 @@ install( ${CMAKE_INSTALL_INCLUDEDIR}${versioned-dir} COMPONENT ${PUGIXML_DEVELOPMENT_COMPONENT}) if (PUGIXML_BUILD_TESTS) + include(CTest) set(fuzz-pattern "tests/fuzz_*.cpp") set(test-pattern "tests/*.cpp") if (CMAKE_VERSION VERSION_GREATER 3.11)