YAML CPP: Reformat config file with `cmake-format`
@@ -5,7 +5,8 @@ if (DEPENDENCY_PHASE)
else (NOT YAML-CPP_FOUND)
if (YAML-CPP_VERSION VERSION_LESS "0.6.0")
if (ENABLE_ASAN AND CMAKE_COMPILER_IS_GNUCXX)
- remove_plugin (yamlcpp "yaml-cpp ${YAML-CPP_VERSION} reports runtime errors if you compile it with GCC "
+ remove_plugin (yamlcpp
+ "yaml-cpp ${YAML-CPP_VERSION} reports runtime errors if you compile it with GCC "
"using AddressSanitizer")
endif (ENABLE_ASAN AND CMAKE_COMPILER_IS_GNUCXX)
@@ -13,6 +14,7 @@ if (DEPENDENCY_PHASE)
if (NOT Boost_FOUND)
remove_plugin (yamlcpp "yaml-cpp ${YAML-CPP_VERSION} requires Boost")
endif (NOT Boost_FOUND)
+
# Disable warnings about shadow declarations in yaml-cpp source code
if (APPLE AND CMAKE_COMPILER_IS_GNUCXX)
string (REPLACE "-Wshadow" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
@@ -28,17 +30,15 @@ add_plugin (yamlcpp
CPP
ADD_TEST
TEST_README
- TEST_REQUIRED_PLUGINS
- base64 directoryvalue
INSTALL_TEST_DATA
- SOURCES
- yamlcpp.hpp yamlcpp.cpp
- read.hpp read.cpp
- write.hpp write.cpp
- INCLUDE_DIRECTORIES
- ${YAML_PLUGIN_INCLUDE_DIRS}
- LINK_LIBRARIES
- ${YAML-CPP_LIBRARIES}
- LINK_ELEKTRA
- elektra-ease
- )
+ TEST_REQUIRED_PLUGINS base64
+ directoryvalue
+ SOURCES yamlcpp.hpp
+ yamlcpp.cpp
+ read.hpp
+ read.cpp
+ write.hpp
+ write.cpp
+ INCLUDE_DIRECTORIES ${YAML_PLUGIN_INCLUDE_DIRS}
+ LINK_LIBRARIES ${YAML-CPP_LIBRARIES}
+ LINK_ELEKTRA elektra-ease)
