Skip to content

Commit d46df2b

Browse files
authored
Merge pull request #646 from nevadex/patch-1
document CPPZMQ_BUILD_TESTS and adjust formatting and semantics of build instructions
2 parents 6541dd1 + 835ca4f commit d46df2b

File tree

1 file changed

+19
-17
lines changed

1 file changed

+19
-17
lines changed

README.md

+19-17
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

0 commit comments

Comments
 (0)