Skip to content

Commit 34f9948

Browse files
jameshu15869gittiver
authored andcommitted
add documentation on linking with OpenSSL and Zlib for default cmake build
1 parent 7f9382f commit 34f9948

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

docs/getting_started/setup/linux.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,24 @@ You can also download the `crow_all.h` file and simply include that into your pr
4949
the `CROW_ENABLE_SSL` variable to enable the support for https
5050
the `CROW_ENABLE_COMPRESSION` variable to enable the support for http compression
5151

52+
!!! note
53+
54+
By default, Crow sets `CROW_ENABLE_SSL=true` and `CROW_ENABLE_COMPRESSION=true` for CMake builds. You must call `find_package` and manually link with these libraries in your build if you keep these defaults.
55+
56+
57+
```
58+
find_package(OpenSSL REQUIRED)
59+
find_package(ZLIB REQUIRED)
60+
61+
target_link_libraries(main
62+
PRIVATE
63+
OpenSSL::SSL
64+
OpenSSL::Crypto
65+
ZLIB::ZLIB
66+
Crow::Crow
67+
)
68+
```
69+
5270
!!! note
5371

5472
You can uninstall Crow at a later time using `make uninstall`.

0 commit comments

Comments
 (0)