Skip to content

Commit 518cad0

Browse files
committed
update cmake instructions
1 parent e0d6623 commit 518cad0

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,17 @@ By virtue of being written in C++, this client works in several different platfo
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.
2121
3. Run `cmake -DBOOST_PATH:STRING=<your boost install folder> ./`
22-
4. Run `make`(if makefile generated) or open generated project (if project file generated) to build.
22+
4. Run `make install`(if makefile generated) or open generated project (if project file generated) to build.
2323
5. Include `sio_client.h` in your client code where you want to use it.
2424

25+
*If you're using boost without install,you can specify `boost include dir` and `boost lib dir` separately by:*
26+
```bash
27+
cmake
28+
-DBOOST_INCLUDE:STRING=<your boost include folder>
29+
-DBOOST_LIB:STRING=<your boost lib folder>
30+
./
31+
```
32+
2533
### Without CMake
2634
1. Install boost, see [Boost setup](#boost_setup) section.
2735
2. Use `git clone --recurse-submodules https://github.com/socketio/socket.io-client-cpp.git` to clone your local repo.

0 commit comments

Comments
 (0)