Commit dc04c5bb authored by Pieter Hintjens's avatar Pieter Hintjens

Merge pull request #1621 from madebr/cmake_winci_fixes

Cmake winci fixes
parents c5572211 0a0b9fd7
...@@ -611,7 +611,8 @@ else() ...@@ -611,7 +611,8 @@ else()
PUBLIC_HEADER "${public_headers}" PUBLIC_HEADER "${public_headers}"
VERSION ${ZMQ_VERSION} VERSION ${ZMQ_VERSION}
SOVERSION "${ZMQ_VERSION_MAJOR}.${ZMQ_VERSION_MINOR}.0" SOVERSION "${ZMQ_VERSION_MAJOR}.${ZMQ_VERSION_MINOR}.0"
OUTPUT_NAME "libzmq") OUTPUT_NAME "libzmq"
PREFIX "")
if(ZMQ_BUILD_FRAMEWORK) if(ZMQ_BUILD_FRAMEWORK)
set_target_properties(libzmq PROPERTIES set_target_properties(libzmq PROPERTIES
FRAMEWORK TRUE FRAMEWORK TRUE
...@@ -629,7 +630,8 @@ else() ...@@ -629,7 +630,8 @@ else()
set_target_properties(libzmq-static PROPERTIES set_target_properties(libzmq-static PROPERTIES
PUBLIC_HEADER "${public_headers}" PUBLIC_HEADER "${public_headers}"
COMPILE_DEFINITIONS "ZMQ_STATIC" COMPILE_DEFINITIONS "ZMQ_STATIC"
OUTPUT_NAME "libzmq-static") OUTPUT_NAME "libzmq-static"
PREFIX "")
endif() endif()
target_link_libraries(libzmq ${CMAKE_THREAD_LIBS_INIT}) target_link_libraries(libzmq ${CMAKE_THREAD_LIBS_INIT})
......
...@@ -14,23 +14,27 @@ environment: ...@@ -14,23 +14,27 @@ environment:
- platform: Win32 - platform: Win32
configuration: Release configuration: Release
WITH_SODIUM: ON WITH_SODIUM: ON
WITH_TWEETNACL: OFF WITH_TWEETNACL: ON
- platform: Win32 - platform: Win32
configuration: Release configuration: Debug
WITH_SODIUM: ON WITH_SODIUM: ON
WITH_TWEETNACL: OFF WITH_TWEETNACL: ON
- platform: x64 - platform: x64
configuration: Debug configuration: Release
WITH_SODIUM: ON WITH_SODIUM: ON
WITH_TWEETNACL: OFF WITH_TWEETNACL: ON
- platform: x64 - platform: x64
configuration: Debug configuration: Debug
WITH_SODIUM: ON WITH_SODIUM: ON
WITH_TWEETNACL: OFF WITH_TWEETNACL: ON
- platform: Win32 - platform: Win32
configuration: Release configuration: Release
WITH_SODIUM: OFF WITH_SODIUM: OFF
WITH_TWEETNACL: OFF WITH_TWEETNACL: OFF
- platform: Win32
configuration: Release
WITH_SODIUM: ON
WITH_TWEETNACL: OFF
- platform: Win32 - platform: Win32
configuration: Release configuration: Release
WITH_SODIUM: OFF WITH_SODIUM: OFF
......
...@@ -22,7 +22,7 @@ void randombytes(unsigned char *x,unsigned long long xlen) ...@@ -22,7 +22,7 @@ void randombytes(unsigned char *x,unsigned long long xlen)
if (xlen < 1048576) i = (unsigned) xlen; else i = 1048576; if (xlen < 1048576) i = (unsigned) xlen; else i = 1048576;
ret = CryptGenRandom(hProvider, i, x); ret = CryptGenRandom(hProvider, i, x);
if (ret != FALSE) { if (ret == FALSE) {
Sleep(1); Sleep(1);
continue; continue;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment