2012-10-12 17:36:34 +02:00
|
|
|
|
2013-01-01 11:34:44 +01:00
|
|
|
file(READ "${PROJECT_SOURCE_DIR}/include/zmq.h" _ZMQ_H_CONTENTS)
|
|
|
|
string(REGEX REPLACE ".*#define ZMQ_VERSION_MAJOR ([0-9]+).*" "\\1" ZMQ_VERSION_MAJOR "${_ZMQ_H_CONTENTS}")
|
|
|
|
string(REGEX REPLACE ".*#define ZMQ_VERSION_MINOR ([0-9]+).*" "\\1" ZMQ_VERSION_MINOR "${_ZMQ_H_CONTENTS}")
|
|
|
|
string(REGEX REPLACE ".*#define ZMQ_VERSION_PATCH ([0-9]+).*" "\\1" ZMQ_VERSION_PATCH "${_ZMQ_H_CONTENTS}")
|
|
|
|
set(ZMQ_VERSION "${ZMQ_VERSION_MAJOR}.${ZMQ_VERSION_MINOR}.${ZMQ_VERSION_PATCH}")
|
2012-10-12 17:36:34 +02:00
|
|
|
|
2013-01-01 11:34:44 +01:00
|
|
|
message(STATUS "Detected ZMQ Version - ${ZMQ_VERSION}")
|
2012-10-12 17:36:34 +02:00
|
|
|
|
2013-01-01 11:34:44 +01:00
|
|
|
if(MSVC_VERSION MATCHES "1700")
|
|
|
|
set(_zmq_COMPILER "-v110")
|
|
|
|
elseif(MSVC10)
|
|
|
|
set(_zmq_COMPILER "-v100")
|
|
|
|
elseif(MSVC90)
|
|
|
|
set(_zmq_COMPILER "-v90")
|
|
|
|
else()
|
|
|
|
set(_zmq_COMPILER "")
|
|
|
|
endif()
|