File tree Expand file tree Collapse file tree 2 files changed +1
-13
lines changed
Expand file tree Collapse file tree 2 files changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -3,15 +3,7 @@ project(cppzmq)
33
44find_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} )
157message (STATUS "cppzmq v${${PROJECT_NAME} _VERSION}" )
168
179set (CPPZMQ_HEADERS
Original file line number Diff line number Diff 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-
114110namespace zmq
115111{
116112
You can’t perform that action at this time.
0 commit comments