diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2017-01-30 20:01:01 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-01-30 20:01:01 -0800 |
| commit | 092f56e47d2f4513d0aae92bf7352482c7bffca8 (patch) | |
| tree | 7d5365615ede42b7a06fe4d4a052bd9a6b7fa152 | |
| parent | 846aacdfbf249d928de8e669feaeae582a0e6a86 (diff) | |
| parent | 90fe56b0156a178b6b5d56f87fa7d4bc68d746ab (diff) | |
| download | vcpkg-092f56e47d2f4513d0aae92bf7352482c7bffca8.tar.gz vcpkg-092f56e47d2f4513d0aae92bf7352482c7bffca8.zip | |
Merge pull request #615 from stammen/bzip2-fix-uwp
[bzip2] Fix UWP builds
| -rw-r--r-- | ports/bzip2/CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ports/bzip2/CMakeLists.txt b/ports/bzip2/CMakeLists.txt index 9f9737da3..d5407cc5f 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 |
