diff --git a/CMakeLists.txt b/CMakeLists.txt index 5906f7e..f154bc7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,6 +27,7 @@ ament_vendor(yaml_cpp_vendor -DYAML_CPP_BUILD_TESTS:BOOL=OFF -DYAML_CPP_BUILD_TOOLS:BOOL=OFF -DYAML_BUILD_SHARED_LIBS:BOOL=${BUILD_SHARED_LIBS} + PATCHES patches ) ament_package( diff --git a/patches/.gitattributes b/patches/.gitattributes new file mode 100644 index 0000000..9812ceb --- /dev/null +++ b/patches/.gitattributes @@ -0,0 +1 @@ +*.patch text eol=lf diff --git a/patches/0001.patch b/patches/0001.patch new file mode 100644 index 0000000..fa8f94e --- /dev/null +++ b/patches/0001.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 72fa542..855fc69 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -111,7 +111,7 @@ endif() + if(YAML_CPP_MAIN_PROJECT) + target_compile_options(yaml-cpp + PRIVATE +- $<${not-msvc}:-Wall -Wextra -Wshadow -Weffc++ -Wno-long-long> ++ $<${not-msvc}:-Wall -Wextra -Wno-shadow -Weffc++ -Wno-long-long> + $<${not-msvc}:-pedantic -pedantic-errors>) + endif() +