deps/blake2: Add static blake2 library for Windows updater
This commit is contained in:
parent
e4305b0a50
commit
2d489fc54e
1 changed files with 13 additions and 0 deletions
13
deps/blake2/CMakeLists.txt
vendored
13
deps/blake2/CMakeLists.txt
vendored
|
|
@ -11,3 +11,16 @@ target_sources(
|
|||
target_include_directories(blake2 PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/src")
|
||||
|
||||
set_target_properties(blake2 PROPERTIES FOLDER deps)
|
||||
|
||||
if(OS_WINDOWS)
|
||||
add_library(blake2_static OBJECT)
|
||||
add_library(OBS::blake2_static ALIAS blake2_static)
|
||||
|
||||
target_sources(
|
||||
blake2_static
|
||||
PRIVATE src/blake2-impl.h src/blake2b-ref.c
|
||||
PUBLIC src/blake2.h)
|
||||
|
||||
target_include_directories(blake2_static PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/src")
|
||||
set_target_properties(blake2_static PROPERTIES MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
|
||||
endif()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue