mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-31 01:43:02 +08:00
Merge pull request #1621 from madebr/cmake_winci_fixes
Cmake winci fixes
This commit is contained in:
commit
dc04c5bbd6
@ -611,7 +611,8 @@ else()
|
||||
PUBLIC_HEADER "${public_headers}"
|
||||
VERSION ${ZMQ_VERSION}
|
||||
SOVERSION "${ZMQ_VERSION_MAJOR}.${ZMQ_VERSION_MINOR}.0"
|
||||
OUTPUT_NAME "libzmq")
|
||||
OUTPUT_NAME "libzmq"
|
||||
PREFIX "")
|
||||
if(ZMQ_BUILD_FRAMEWORK)
|
||||
set_target_properties(libzmq PROPERTIES
|
||||
FRAMEWORK TRUE
|
||||
@ -629,7 +630,8 @@ else()
|
||||
set_target_properties(libzmq-static PROPERTIES
|
||||
PUBLIC_HEADER "${public_headers}"
|
||||
COMPILE_DEFINITIONS "ZMQ_STATIC"
|
||||
OUTPUT_NAME "libzmq-static")
|
||||
OUTPUT_NAME "libzmq-static"
|
||||
PREFIX "")
|
||||
endif()
|
||||
|
||||
target_link_libraries(libzmq ${CMAKE_THREAD_LIBS_INIT})
|
||||
|
18
appveyor.yml
18
appveyor.yml
@ -14,23 +14,27 @@ environment:
|
||||
- platform: Win32
|
||||
configuration: Release
|
||||
WITH_SODIUM: ON
|
||||
WITH_TWEETNACL: OFF
|
||||
WITH_TWEETNACL: ON
|
||||
- platform: Win32
|
||||
configuration: Debug
|
||||
WITH_SODIUM: ON
|
||||
WITH_TWEETNACL: ON
|
||||
- platform: x64
|
||||
configuration: Release
|
||||
WITH_SODIUM: ON
|
||||
WITH_TWEETNACL: OFF
|
||||
WITH_TWEETNACL: ON
|
||||
- platform: x64
|
||||
configuration: Debug
|
||||
WITH_SODIUM: ON
|
||||
WITH_TWEETNACL: OFF
|
||||
- platform: x64
|
||||
configuration: Debug
|
||||
WITH_SODIUM: ON
|
||||
WITH_TWEETNACL: OFF
|
||||
WITH_TWEETNACL: ON
|
||||
- platform: Win32
|
||||
configuration: Release
|
||||
WITH_SODIUM: OFF
|
||||
WITH_TWEETNACL: OFF
|
||||
- platform: Win32
|
||||
configuration: Release
|
||||
WITH_SODIUM: ON
|
||||
WITH_TWEETNACL: OFF
|
||||
- platform: Win32
|
||||
configuration: Release
|
||||
WITH_SODIUM: OFF
|
||||
|
@ -22,7 +22,7 @@ void randombytes(unsigned char *x,unsigned long long xlen)
|
||||
if (xlen < 1048576) i = (unsigned) xlen; else i = 1048576;
|
||||
|
||||
ret = CryptGenRandom(hProvider, i, x);
|
||||
if (ret != FALSE) {
|
||||
if (ret == FALSE) {
|
||||
Sleep(1);
|
||||
continue;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user