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)
3
3
4
4
find_package (ZeroMQ REQUIRED )
5
5
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} )
15
7
message (STATUS "cppzmq v${${PROJECT_NAME} _VERSION}" )
16
8
17
9
set (CPPZMQ_HEADERS
Original file line number Diff line number Diff line change @@ -107,10 +107,6 @@ typedef struct {
107
107
# define ZMQ_ASSERT (expression ) (void )(expression)
108
108
#endif
109
109
110
- #define CPPZMQ_VERSION_MAJOR 1
111
- #define CPPZMQ_VERSION_MINOR 0
112
- #define CPPZMQ_VERSION_PATCH 0
113
-
114
110
namespace zmq
115
111
{
116
112
You can’t perform that action at this time.
0 commit comments