uwp builds need _CRT_SECURE_NO_WARNINGS and others defined

This commit is contained in:
Dale Stammen 2017-01-30 14:12:08 -08:00
parent d776322d2a
commit 90fe56b015

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