build(yaml-cpp): disabled yaml-cpp shadow warnings

This commit is contained in:
2025-07-24 08:24:27 -04:00
parent 362055bf05
commit 7dfeb0e088
4 changed files with 17 additions and 4 deletions

View File

@@ -3,7 +3,9 @@ yaml_cpp_cmake_options.add_cmake_defines({
'CMAKE_POLICY_VERSION_MINIMUM': '3.5',
'BUILD_SHARED_LIBS': 'ON',
'CMAKE_SKIP_INSTALL_RULES': 'ON',
'YAML_CPP_BUILD_TESTS': 'OFF'
'YAML_CPP_BUILD_TESTS': 'OFF',
'CMAKE_CXX_FLAGS': '-Wno-shadow',
'CMAKE_C_FLAGS': '-Wno-shadow',
})
yaml_cpp_sp = cmake.subproject(
'yaml-cpp',

View File

@@ -18,7 +18,7 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# *********************************************************************** #
project('libconfig', 'cpp', version: 'v1.1.0', default_options: ['cpp_std=c++23'], meson_version: '>=1.5.0')
project('libconfig', 'cpp', version: 'v1.1.1', default_options: ['cpp_std=c++23'], meson_version: '>=1.5.0')
# Add default visibility for all C++ targets
add_project_arguments('-fvisibility=default', language: 'cpp')
@@ -40,4 +40,4 @@ if get_option('pkg-config')
filebase: 'fourdst_config',
install_dir: join_paths(get_option('libdir'), 'pkgconfig')
)
endif
endif

View File

@@ -0,0 +1,10 @@
--- yaml-cpp/CMakeLists.txt.orig 2025-07-24 08:18:01
+++ yaml-cpp/CMakeLists.txt 2025-07-24 08:18:25
@@ -93,7 +93,6 @@
target_compile_options(yaml-cpp
PRIVATE
- $<${not-msvc}:-Wall -Wextra -Wshadow -Weffc++ -Wno-long-long>
$<${not-msvc}:-pedantic -pedantic-errors>
$<$<AND:${backport-msvc-runtime},${msvc-rt-mtd-static}>:-MTd>

View File

@@ -1,5 +1,6 @@
[wrap-git]
url = https://github.com/jbeder/yaml-cpp.git
revision = yaml-cpp-0.7.0
diff_files = yaml-cpp/disableShadowWarnings.patch
[cmake]
[cmake]