Merge pull request #615 from stammen/bzip2-fix-uwp

[bzip2] Fix UWP builds
This commit is contained in:
Robert Schumacher 2017-01-30 20:01:01 -08:00 committed by GitHub
commit 092f56e47d

View File

@ -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