@@ -51,7 +51,7 @@ $ cmake --build . --config CCC
51
51
~~~~~~~
52
52
53
53
where `CCC` is the build configuration to use, such as `Release` or `Debug`.
54
- It is also possible to omit `--config CCC` option in which case the default
54
+ It is also possible to omit the `--config CCC` option in which case the default
55
55
`Debug` configuration will be used.
56
56
57
57
@note
@@ -62,19 +62,19 @@ It is also possible to omit `--config CCC` option in which case the default
62
62
After a successful build, the build location should contain
63
63
the Connector/C++ shared library:
64
64
65
- - `libmysqlcppconn2.so.1.0` on Unix,
66
- - `libmysqlcppconn2.1.0.dylib` on OS X,
65
+ - `libmysqlcppconn2.so.1.0` on Unix
66
+ - `libmysqlcppconn2.1.0.dylib` on OS X
67
67
- `CCC/mysqlcppconn2-vsXX.dll` on Windows, where `-vs12` or `-vs14` prefix
68
- depends on the MSVC version used to build the connector.
68
+ depends on the MSVC version used to build the connector
69
69
70
70
On Unix and OS X also appropriate symbolic links are created. On Windows the
71
71
import library for the DLL is created at `CCC/mysqlcppconn2.lib` (the `CCC/`
72
72
subdirectory is named the same as the build configuration used).
73
73
74
74
In the case of a static library build, the output library names are:
75
75
76
- - `libmysqlcppconn2-static.a` on Unix and OS X,
77
- - `CCC/mysqlcppconn2-static.lib` on Windows.
76
+ - `libmysqlcppconn2-static.a` on Unix and OS X
77
+ - `CCC/mysqlcppconn2-static.lib` on Windows
78
78
79
79
80
80
### Testing
@@ -95,7 +95,7 @@ $ cmake --build . --target install --config CCC
95
95
@note
96
96
It is possible to change the `CMAKE_INSTALL_PREFIX` setting before doing
97
97
the installation. To change it, issue the following command before building
98
- `install` target:
98
+ the `install` target:
99
99
~~~~~~~
100
100
$ cmake -DCMAKE_INSTALL_PREFIX=<new location> .
101
101
~~~~~~~
@@ -113,8 +113,8 @@ subdirectory of the build location.
113
113
114
114
@note
115
115
On Windows, if the connector was built with the static runtime by specifying
116
- `-DSTATC_MSVCRT=yes` configuration option (see below), the same option must
117
- be added to the build configuration of test programs.
116
+ the `-DSTATC_MSVCRT=yes` configuration option (see below), the same option
117
+ must be added to the build configuration of test programs.
118
118
119
119
@note
120
120
The 32/64-bit Windows `cmake` generator (`"Visual Studio 12 2013 Win64"` vs
@@ -206,9 +206,8 @@ Connector/C++ uses C++11 language and for that reason it is not possible
206
206
to build it with Microsoft Visual Studio 2010 or earlier.
207
207
208
208
On Windows one can request that Connector/C++ uses the static runtime library
209
- (The `/MT*` compiler option) by setting:
210
-
211
- - `-DSTATIC_MSVCRT=yes`
209
+ (The `/MT*` compiler option) by setting the cmake option
210
+ `-DSTATIC_MSVCRT=yes`
212
211
213
212
This might be necessary if code which uses Connector/C++ also uses the static
214
213
runtime.
@@ -218,12 +217,12 @@ Selecting a cmake generator such as `"Visual Studio 12 2013 Win64"` vs
218
217
the connector is built. An application which uses Connector/C++ must
219
218
be built for the same platform as the connector.
220
219
221
- Note that application which is built using 'Debug', 'Release' or other MSVC
222
- build configuration needs to link against Connector/C++ library built
223
- with the same configuration (as determined by the cmake option `--config=CCC`
224
- described above). Linker leaves library built using configuration `CCC` in
225
- a `CCC/` subfolder of the build location. Thus, when building an application
226
- that uses the connector library, one has to point linker at the location
220
+ An application built using 'Debug', 'Release' or other MSVC build configuration
221
+ needs to link against a Connector/C++ library built with the same configuration
222
+ (as determined by the `--config=CCC` cmake option described above). The linker
223
+ places the library built using the `CCC` configuration in a `CCC/`
224
+ subdirectory of the build location. Thus, when building an application
225
+ that uses the connector library, one has to point the linker at the location
227
226
containing a compatible build of the connector.
228
227
229
228
OS X Notes
@@ -238,8 +237,8 @@ To define the deployment target, set the environment variable
238
237
of Connector/C++ are built with `MACOSX_DEPLOYMENT_TARGET` set to `10.9`.
239
238
240
239
Building Connector/C++ with `gcc` or its `libstdc++` runtime has not been
241
- tested and there is no support in the build system for using an alternative C++
242
- runtime library.
240
+ tested and there is no support in the build system for using an alternative
241
+ C++ runtime library.
243
242
244
243
245
244
<!--
0 commit comments