mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 20:51:16 +00:00
README.md: Describe building with debug libstdc++ mode
This commit is contained in:

committed by
Jesse Beder

parent
1c5a38eef3
commit
eaf7205372
11
README.md
11
README.md
@@ -31,6 +31,17 @@ cmake [-G generator] [-DYAML_BUILD_SHARED_LIBS=on|OFF] ..
|
|||||||
|
|
||||||
* `yaml-cpp` builds a static library by default, you may want to build a shared library by specifying `-DYAML_BUILD_SHARED_LIBS=ON`.
|
* `yaml-cpp` builds a static library by default, you may want to build a shared library by specifying `-DYAML_BUILD_SHARED_LIBS=ON`.
|
||||||
|
|
||||||
|
* [Debug mode of the GNU standard C++
|
||||||
|
library](https://gcc.gnu.org/onlinedocs/libstdc++/manual/debug_mode.html)
|
||||||
|
can be used when both `yaml-cpp` and client code is compiled with the
|
||||||
|
`_GLIBCXX_DEBUG` flag (e.g. by calling CMake with `-D
|
||||||
|
CMAKE_CXX_FLAGS_DEBUG='-g -D_GLIBCXX_DEBUG'` option).
|
||||||
|
|
||||||
|
Note that for `yaml-cpp` unit tests to run successfully, the _GoogleTest_
|
||||||
|
library also must be built with this flag, i.e. the system one cannot be
|
||||||
|
used (the _YAML_USE_SYSTEM_GTEST_ CMake option must be _OFF_, which is the
|
||||||
|
default).
|
||||||
|
|
||||||
* For more options on customizing the build, see the [CMakeLists.txt](https://github.com/jbeder/yaml-cpp/blob/master/CMakeLists.txt) file.
|
* For more options on customizing the build, see the [CMakeLists.txt](https://github.com/jbeder/yaml-cpp/blob/master/CMakeLists.txt) file.
|
||||||
|
|
||||||
#### 2. Build it!
|
#### 2. Build it!
|
||||||
|
Reference in New Issue
Block a user