Skip to content

Commit a258a54

Browse files
authored
[API-1511] -DHZ_BUILD_WITH_SSL requirement is stated. (#1118)
-DHZ_BUILD_WITH_SSL requirement is stated.
1 parent 821acd7 commit a258a54

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Reference_Manual.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,14 @@ For example, if you want to build the static library with SSL support, you can u
320320
cmake .. -DWITH_OPENSSL=ON -DBUILD_SHARED_LIBS=OFF
321321
```
322322

323+
Note that, if you want to use the `hazelcast-cpp-client` library which is compiled with `-DWITH_OPENSSL=ON` option without `find_package()` then you need to define `HZ_BUILD_WITH_SSL` symbolic constant before including any `hazelcast-cpp-client` header.
324+
It can be either passed via compiler flags.
325+
326+
For example:
327+
```sh
328+
g++ -DHZ_BUILD_WITH_SSL -DBOOST_CHRONO_DYN_LINK -DBOOST_CHRONO_NO_LIB -DBOOST_THREAD_DYN_LINK -DBOOST_THREAD_NO_LIB -DBOOST_THREAD_VERSION=5 -I/var/git/hazelcast-cpp-client/build/include -std=gnu++11 -c main.cpp
329+
```
330+
323331
## 1.2. Starting a Hazelcast Cluster
324332

325333
The Hazelcast C++ client requires a working Hazelcast cluster to run. This cluster handles storage and manipulation of the user data. Clients are a way to connect to the Hazelcast cluster and access such data.

0 commit comments

Comments
 (0)