0
0
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:
Pieter Hintjens 2015-10-25 09:54:00 +01:00
commit dc04c5bbd6
3 changed files with 16 additions and 10 deletions

View File

@ -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})

View File

@ -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

View File

@ -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;
}