Only include CTest when building the pugixml tests
This commit is contained in:
parent
db78afc2b7
commit
a468d5c438
@ -10,7 +10,6 @@ project(pugixml VERSION 1.14 LANGUAGES CXX)
|
|||||||
include(CMakePackageConfigHelpers)
|
include(CMakePackageConfigHelpers)
|
||||||
include(CMakeDependentOption)
|
include(CMakeDependentOption)
|
||||||
include(GNUInstallDirs)
|
include(GNUInstallDirs)
|
||||||
include(CTest)
|
|
||||||
|
|
||||||
cmake_dependent_option(PUGIXML_USE_VERSIONED_LIBDIR
|
cmake_dependent_option(PUGIXML_USE_VERSIONED_LIBDIR
|
||||||
"Use a private subdirectory to install the headers and libraries" OFF
|
"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})
|
${CMAKE_INSTALL_INCLUDEDIR}${versioned-dir} COMPONENT ${PUGIXML_DEVELOPMENT_COMPONENT})
|
||||||
|
|
||||||
if (PUGIXML_BUILD_TESTS)
|
if (PUGIXML_BUILD_TESTS)
|
||||||
|
include(CTest)
|
||||||
set(fuzz-pattern "tests/fuzz_*.cpp")
|
set(fuzz-pattern "tests/fuzz_*.cpp")
|
||||||
set(test-pattern "tests/*.cpp")
|
set(test-pattern "tests/*.cpp")
|
||||||
if (CMAKE_VERSION VERSION_GREATER 3.11)
|
if (CMAKE_VERSION VERSION_GREATER 3.11)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user