mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 11:21:12 +08:00
uwp builds need _CRT_SECURE_NO_WARNINGS and others defined
This commit is contained in:
parent
d776322d2a
commit
90fe56b015
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user