From 90fe56b0156a178b6b5d56f87fa7d4bc68d746ab Mon Sep 17 00:00:00 2001 From: Dale Stammen Date: Mon, 30 Jan 2017 14:12:08 -0800 Subject: [PATCH] uwp builds need _CRT_SECURE_NO_WARNINGS and others defined --- ports/bzip2/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ports/bzip2/CMakeLists.txt b/ports/bzip2/CMakeLists.txt index 9f9737da3d..d5407cc5f9 100644 --- a/ports/bzip2/CMakeLists.txt +++ b/ports/bzip2/CMakeLists.txt @@ -20,6 +20,12 @@ if(BUILD_SHARED_LIBS) target_compile_definitions(libbz2 PRIVATE -DBZ_BUILD_DLL) endif() +if(MSVC) + add_definitions(-D_CRT_SECURE_NO_WARNINGS) + add_definitions(-D_CRT_SECURE_NO_DEPRECATE) + add_definitions(-D_CRT_NONSTDC_NO_DEPRECATE) +endif() + install(TARGETS libbz2 RUNTIME DESTINATION bin ARCHIVE DESTINATION lib