mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-07-31 18:00:46 -04:00
fix(ci): link StormLib crypto dependencies on Windows
This commit is contained in:
@@ -1343,12 +1343,21 @@ if(STORMLIB_LIBRARY AND STORMLIB_INCLUDE_DIR)
|
||||
if(WIN32)
|
||||
find_library(WININET_LIB wininet)
|
||||
find_library(BZ2_LIB bz2)
|
||||
find_library(TOMCRYPT_LIB NAMES tomcrypt libtomcrypt)
|
||||
find_library(TOMMATH_LIB NAMES tommath libtommath)
|
||||
if(WININET_LIB)
|
||||
target_link_libraries(asset_extract PRIVATE ${WININET_LIB})
|
||||
endif()
|
||||
if(BZ2_LIB)
|
||||
target_link_libraries(asset_extract PRIVATE ${BZ2_LIB})
|
||||
endif()
|
||||
if(TOMCRYPT_LIB AND TOMMATH_LIB)
|
||||
# Static StormLib exposes its LibTomCrypt/LibTomMath dependencies.
|
||||
target_link_libraries(asset_extract PRIVATE ${TOMCRYPT_LIB} ${TOMMATH_LIB})
|
||||
else()
|
||||
message(FATAL_ERROR
|
||||
"Static StormLib on Windows requires LibTomCrypt and LibTomMath")
|
||||
endif()
|
||||
endif()
|
||||
set_target_properties(asset_extract PROPERTIES
|
||||
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
|
||||
|
||||
Reference in New Issue
Block a user