From 1018c83fc506522c884cfcec13c31ca3f728421c Mon Sep 17 00:00:00 2001 From: star Date: Thu, 3 May 2018 00:11:33 +0800 Subject: [PATCH] modify unsuitable code --- CMakeLists.txt | 6 +++--- util/demo.cpp | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2a32291..d2d8810 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -350,9 +350,9 @@ endif() ### ### Extras ### -###if(YAML_CPP_BUILD_TESTS) -### add_subdirectory(test) -###endif() +if(YAML_CPP_BUILD_TESTS) + add_subdirectory(test) +endif() if(YAML_CPP_BUILD_TOOLS) add_subdirectory(util) endif() diff --git a/util/demo.cpp b/util/demo.cpp index 66e3567..0ece82b 100644 --- a/util/demo.cpp +++ b/util/demo.cpp @@ -16,10 +16,10 @@ int main(){ //root[3] = 324; - root[0] = 'f'; - root[1] = 'u'; - root[2] = 'c'; - root[3] = 'k'; + root[0] = 'h'; + root[1] = 'e'; + root[2] = 'l'; + root[3] = 'o'; if(root.IsSequence()){