mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-26 22:57:00 +02:00
fix minizip build error for MSVC
This commit is contained in:
parent
7b7282f52e
commit
0541b544c4
@ -12,7 +12,12 @@ set(lib_SRCS
|
|||||||
)
|
)
|
||||||
|
|
||||||
add_library(minizip SHARED ${lib_SRCS})
|
add_library(minizip SHARED ${lib_SRCS})
|
||||||
set_target_properties(minizip PROPERTIES XCODE_ATTRIBUTE_LD_DYLIB_INSTALL_NAME "@rpath/libminizip.dylib")
|
if(MSVC)
|
||||||
|
set_target_properties(minizip PROPERTIES COMPILE_DEFINITIONS "MINIZIP_DLL;ZLIB_DLL;ZLIB_INTERNAL")
|
||||||
|
elseif(APPLE)
|
||||||
|
set_target_properties(minizip PROPERTIES XCODE_ATTRIBUTE_LD_DYLIB_INSTALL_NAME "@rpath/libminizip.dylib")
|
||||||
|
endif()
|
||||||
|
|
||||||
target_link_libraries(minizip ${ZLIB_LIBRARIES})
|
target_link_libraries(minizip ${ZLIB_LIBRARIES})
|
||||||
|
|
||||||
if (NOT APPLE) # Already inside vcmiclient bundle
|
if (NOT APPLE) # Already inside vcmiclient bundle
|
||||||
|
Loading…
Reference in New Issue
Block a user