Mercurial > embed
changeset 7:5f50c00a3472
yaml: fix MSVC 2015 warnings
author | David Demelier <markand@malikania.fr> |
---|---|
date | Thu, 25 Feb 2016 09:01:58 +0100 |
parents | 51a817a269c5 |
children | 22ae219278af |
files | yaml/CMakeLists.txt |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/yaml/CMakeLists.txt Thu Feb 25 09:01:50 2016 +0100 +++ b/yaml/CMakeLists.txt Thu Feb 25 09:01:58 2016 +0100 @@ -44,8 +44,14 @@ target_compile_definitions( yaml PRIVATE + YAML_DECLARE_STATIC YAML_VERSION_MAJOR=${YAML_VERSION_MAJOR} YAML_VERSION_MINOR=${YAML_VERSION_MINOR} YAML_VERSION_PATCH=${YAML_VERSION_PATCH} YAML_VERSION_STRING=\"${YAML_VERSION_STRING}\" ) + +if (MSVC) + target_compile_definitions(yaml PUBLIC _CRT_SECURE_NO_WARNINGS) + target_compile_options(yaml PUBLIC /wd4244 /wd4267 /wd4996) +endif ()