Skip to content

Commit 3ea38fc

Browse files
committed
update cppzmq to 4.11.0
1 parent 58ed0ec commit 3ea38fc

File tree

3 files changed

+371
-155
lines changed

3 files changed

+371
-155
lines changed

3rdparty/cppzmq/README.md

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -163,25 +163,27 @@ Build instructions
163163
Build steps:
164164

165165
1. Build [libzmq](https://github.com/zeromq/libzmq) via cmake. This does an out of source build and installs the build files
166-
- download and unzip the lib, cd to directory
167-
- mkdir build
168-
- cd build
169-
- cmake ..
170-
- sudo make -j4 install
166+
- `git clone https://github.com/zeromq/libzmq.git`
167+
- `cd libzmq`
168+
- `mkdir build`
169+
- `cd build`
170+
- `cmake ..`
171+
- `sudo make -j4 install`
171172

172173
2. Build cppzmq via cmake. This does an out of source build and installs the build files
173-
- download and unzip the lib, cd to directory
174-
- mkdir build
175-
- cd build
176-
- cmake ..
177-
- sudo make -j4 install
178-
179-
3. Build cppzmq via [vcpkg](https://github.com/Microsoft/vcpkg/). This does an out of source build and installs the build files
180-
- git clone https://github.com/Microsoft/vcpkg.git
181-
- cd vcpkg
182-
- ./bootstrap-vcpkg.sh # bootstrap-vcpkg.bat for Powershell
183-
- ./vcpkg integrate install
184-
- ./vcpkg install cppzmq
174+
- `git clone https://github.com/zeromq/cppzmq.git`
175+
- `cd cppzmq`
176+
- `mkdir build`
177+
- `cd build`
178+
- `cmake ..` or `cmake -DCPPZMQ_BUILD_TESTS=OFF ..` to skip building tests
179+
- `sudo make -j4 install`
180+
181+
3. Alternatively, build cppzmq via [vcpkg](https://github.com/Microsoft/vcpkg/). This does an out of source build and installs the build files
182+
- `git clone https://github.com/Microsoft/vcpkg.git`
183+
- `cd vcpkg`
184+
- `./bootstrap-vcpkg.sh` (bootstrap-vcpkg.bat for Powershell)
185+
- `./vcpkg integrate install`
186+
- `./vcpkg install cppzmq`
185187

186188
Using this:
187189

@@ -193,4 +195,6 @@ cpp zmq (which will also include libzmq for you).
193195
#find cppzmq wrapper, installed by make of cppzmq
194196
find_package(cppzmq)
195197
target_link_libraries(*Your Project Name* cppzmq)
198+
# Or use static library to link
199+
target_link_libraries(*Your Project Name* cppzmq-static)
196200
```

0 commit comments

Comments
 (0)