From 2aa08cf7ad8f1e5804d3c739df944be26a1e5e8e Mon Sep 17 00:00:00 2001 From: "Azamat H. Hackimov" Date: Tue, 27 Feb 2018 10:22:12 +0500 Subject: [PATCH] Move enable_testing() into proper place --- CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 37d1624..f821a91 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -31,8 +31,6 @@ set(YAML_CPP_VERSION_MINOR "6") set(YAML_CPP_VERSION_PATCH "0") set(YAML_CPP_VERSION "${YAML_CPP_VERSION_MAJOR}.${YAML_CPP_VERSION_MINOR}.${YAML_CPP_VERSION_PATCH}") -enable_testing() - ### ### Project options @@ -351,6 +349,7 @@ endif() ### Extras ### if(YAML_CPP_BUILD_TESTS) + enable_testing() add_subdirectory(test) endif() if(YAML_CPP_BUILD_TOOLS)