aboutsummaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2020-11-11 11:37:33 +0200
committerOrgad Shaneh <orgads@gmail.com>2020-11-12 14:01:10 +0000
commitd0df1527a67fff05a4bc6553a980d8f144661668 (patch)
tree4bef3be77de58210571a942b71b6cb8a811c0e39 /cmake
parent767db9a92b47594701f460c1337e16c6c9c0d827 (diff)
yaml-cpp: Fix/suppress MSVC warnings
* C4251: 'YAML::Binary::m_data': class 'std::vector<unsigned char,std::allocator<unsigned char>>' needs to have dll-interface to be used by clients of class 'YAML::Binary' * C4275: non dll-interface class 'std::runtime_error' used as base for dll-interface class 'YAML::Exception' * STL4015: The std::iterator class template (used as a base class to provide typedefs) is deprecated in C++17. Change-Id: I37e32df84ee2d2946181aad790dabd0c3ed58c08 Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Findyaml-cpp.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake/Findyaml-cpp.cmake b/cmake/Findyaml-cpp.cmake
index d8e92f070d..2c5b2a60d2 100644
--- a/cmake/Findyaml-cpp.cmake
+++ b/cmake/Findyaml-cpp.cmake
@@ -114,5 +114,8 @@ else()
${YAML_SOURCE_DIR}/src/tag.h
${YAML_SOURCE_DIR}/src/token.h
)
+ if(MSVC)
+ target_compile_options(yaml-cpp PUBLIC /wd4251 /wd4275)
+ endif()
unset(YAML_SOURCE_DIR)
endif()