Skip to content

Commit 15936cd

Browse files
committed
setting cppzmq version to the one of libzmq
1 parent 33e9ab3 commit 15936cd

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

CMakeLists.txt

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,7 @@ project(cppzmq)
33

44
find_package(ZeroMQ REQUIRED)
55

6-
file(STRINGS "${CMAKE_CURRENT_SOURCE_DIR}/zmq.hpp" cppzmq_version_defines
7-
REGEX "#define CPPZMQ_VERSION_(MAJOR|MINOR|PATCH)")
8-
foreach(ver ${cppzmq_version_defines})
9-
if(ver MATCHES "#define CPPZMQ_VERSION_(MAJOR|MINOR|PATCH) +([^ ]+)$")
10-
set(CPPZMQ_VERSION_${CMAKE_MATCH_1} "${CMAKE_MATCH_2}" CACHE INTERNAL "")
11-
endif()
12-
endforeach()
13-
set(${PROJECT_NAME}_VERSION
14-
${CPPZMQ_VERSION_MAJOR}.${CPPZMQ_VERSION_MINOR}.${CPPZMQ_VERSION_PATCH})
6+
set (${PROJECT_NAME}_VERSION ${ZeroMQ_VERSION})
157
message(STATUS "cppzmq v${${PROJECT_NAME}_VERSION}")
168

179
set(CPPZMQ_HEADERS

zmq.hpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,6 @@ typedef struct {
107107
# define ZMQ_ASSERT(expression) (void)(expression)
108108
#endif
109109

110-
#define CPPZMQ_VERSION_MAJOR 1
111-
#define CPPZMQ_VERSION_MINOR 0
112-
#define CPPZMQ_VERSION_PATCH 0
113-
114110
namespace zmq
115111
{
116112

0 commit comments

Comments
 (0)