diff --git a/CMakeLists.txt b/CMakeLists.txt index f01efc8..6e13bd5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,6 +20,7 @@ ament_vendor(yaml_cpp_vendor SATISFIED ${yaml-cpp_FOUND} VCS_URL https://github.com/jbeder/yaml-cpp.git VCS_VERSION yaml-cpp-0.7.0 + PATCHES patches CMAKE_ARGS "-DCMAKE_CXX_FLAGS=${YAML_CPP_CXX_FLAGS}" -DYAML_CPP_BUILD_CONTRIB:BOOL=OFF diff --git a/patches/0001-disable-shadow-warning.patch b/patches/0001-disable-shadow-warning.patch new file mode 100644 index 0000000..7b6debb --- /dev/null +++ b/patches/0001-disable-shadow-warning.patch @@ -0,0 +1,11 @@ +--- a/CMakeLists.txt 2023-12-01 16:47:18.388383723 +0000 ++++ b/CMakeLists.txt 2023-12-01 16:47:23.630353853 +0000 +@@ -93,7 +93,7 @@ endif() + + target_compile_options(yaml-cpp + PRIVATE +- $<${not-msvc}:-Wall -Wextra -Wshadow -Weffc++ -Wno-long-long> ++ $<${not-msvc}:-Wall -Wextra -Weffc++ -Wno-long-long> + $<${not-msvc}:-pedantic -pedantic-errors> + + $<$:-MTd>