Skip to content

Commit 15552e6

Browse files
committed
Add BOOST_VER cmake option in README
1 parent e3658fe commit 15552e6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,16 @@ By virtue of being written in C++, this client works in several different platfo
1818
### With CMake
1919
1. Install boost, see [Boost setup](#boost_setup) section.
2020
2. Use `git clone --recurse-submodules https://github.com/socketio/socket.io-client-cpp.git` to clone your local repo.
21-
3. Run `cmake -DBOOST_PATH:STRING=<your boost install folder> ./`
21+
3. Run `cmake -DBOOST_PATH:STRING=<your boost install folder> -DBOOST_VER:STRING=<your boost version> ./`
2222
4. Run `make install`(if makefile generated) or open generated project (if project file generated) to build.
23-
5. Include `sio_client.h` in your client code where you want to use it.
23+
5. Find headers and lib under `./build`, link with the static lib and include `sio_client.h` in your client code where you want to use it.
2424

2525
*If you're using boost without install,you can specify `boost include dir` and `boost lib dir` separately by:*
2626
```bash
2727
cmake
2828
-DBOOST_INCLUDE:STRING=<your boost include folder>
2929
-DBOOST_LIB:STRING=<your boost lib folder>
30+
-DBOOST_VER:STRING=<your boost version>
3031
./
3132
```
3233

0 commit comments

Comments
 (0)