Buildsystem: Try picking up zmq lib for VS 2013 if using VS 2015

This commit is contained in:
Shauren
2016-01-21 17:50:37 +01:00
parent 575d5f5ff8
commit f4ebab2a73

View File

@@ -49,6 +49,11 @@ if (MSVC)
# Get Visual studio version number
string(REGEX REPLACE "Visual Studio ([0-9]+).*" "\\1" ZMQ_VS_VERSION ${CMAKE_GENERATOR})
# HACK - zmq doesnt ship libs for VS 2015
if (${ZMQ_VS_VERSION} EQUAL 14)
set(ZMQ_VS_VERSION 12)
endif()
if (${ZMQ_NAME} MATCHES "registry") # if key was not found, the string "registry" is returned
set(_ZMQ_VERSIONS "4_0_4" "4_0_3" "4_0_2" "4_0_1" "4_0_0" "3_2_5" "3_2_4" "3_2_3" "3_2_2" "3_2_1" "3_2_0" "3_1_0")
set(ZMQ_LIBRARY_NAME)