build(yaml-cpp): disabled yaml-cpp shadow warnings
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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>
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user