@@ -114,7 +114,7 @@ the ``~/cpp-netlib`` directory exists, and is the top-level directory of the
114
114
Building with CMake
115
115
===================
116
116
117
- To build the tests that come with cpp-netlib, we first need to configure the
117
+ To build the tests that come with :mod: ` cpp-netlib ` , we first need to configure the
118
118
build system to use our compiler of choice. This is done by running the
119
119
``cmake `` command at the top-level directory of :mod: `cpp-netlib ` with
120
120
additional parameters::
@@ -131,6 +131,31 @@ additional parameters::
131
131
For the purposes of documentation, we'll assume that all
132
132
builds are done in ``~/cpp-netlib-build ``.
133
133
134
+ If you intend to use the SSL support when using the HTTP client libraries in
135
+ :mod: `cpp-netlib `, you may need to build it with OpenSSL _ installed or at least
136
+ available to CMake. One example for building the library with OpenSSL _ support
137
+ is by doing the following::
138
+
139
+ $ cmake -DCMAKE_BUILD_TYPE=Debug \
140
+ > -DCMAKE_C_COMPILER=clang \
141
+ > -DCMAKE_CXX_COMPILER=clang++ \
142
+ > -DOPENSSL_ROOT_DIR=/Users/dberris/homebrew/Cellar/openssl/1.0.1f
143
+ > ../cpp-netlib
144
+
145
+ .. _OpenSSL : http://www.openssl.org/
146
+
147
+ You can also use a different root directory for the Boost _ project by using the
148
+ ``-DBOOST_ROOT `` configuration option to CMake. This is useful if you intend to
149
+ build the library with a specific version of Boost that you've built in a
150
+ separate directory::
151
+
152
+ $ cmake -DCMAKE_BUILD_TYPE=Debug \
153
+ > -DCMAKE_C_COMPILER=clang \
154
+ > -DCMAKE_CXX_COMPILER=clang++ \
155
+ > -DOPENSSL_ROOT_DIR=/Users/dberris/homebrew/Cellar/openssl/1.0.1f \
156
+ > -DBOOST_ROOT=/Users/dberris/Source/boost_1_55_0
157
+ > ../cpp-netlib
158
+
134
159
Building on Linux
135
160
~~~~~~~~~~~~~~~~~
136
161
@@ -178,8 +203,8 @@ Building On Windows
178
203
~~~~~~~~~~~~~~~~~~~
179
204
180
205
If you're using the Microsoft Visual C++ compiler or the Microsoft Visual Studio
181
- IDE and you would like to build cpp-netlib from within Visual Studio, you can
182
- look for the solution and project files as the artifacts of the call to
206
+ IDE and you would like to build :mod: ` cpp-netlib ` from within Visual Studio, you
207
+ can look for the solution and project files as the artifacts of the call to
183
208
``cmake `` -- the file should be named ``CPP-NETLIB.sln `` (the solution) along
184
209
with a number of project files for Visual Studio.
185
210
0 commit comments