From eea23f08531dbccd3bffb75aca263e53b78b2f13 Mon Sep 17 00:00:00 2001 From: jelin Date: Tue, 21 Mar 2023 22:09:12 +0800 Subject: [PATCH] Move CTest to test entry --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6ef6e8a..428f527 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,7 +18,6 @@ include(CMakePackageConfigHelpers) include(CMakeDependentOption) include(CheckCXXCompilerFlag) include(GNUInstallDirs) -include(CTest) option(YAML_CPP_BUILD_CONTRIB "Enable yaml-cpp contrib in library" ON) option(YAML_CPP_BUILD_TOOLS "Enable parse tools" ON) @@ -179,6 +178,7 @@ endif() unset(CONFIG_EXPORT_DIR) if(YAML_CPP_BUILD_TESTS) + include(CTest) add_subdirectory(test) endif()