Skip to content

Commit 974349d

Browse files
authored
Fix typo in README about building shared libraries.
1 parent 5057a53 commit 974349d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ If you find a bug, post an [issue](https://github.com/jbeder/yaml-cpp/issues)! I
2121
```sh
2222
mkdir build
2323
cd build
24-
cmake [-G generator] [-YAML_BUILD_SHARED_LIBS=on|OFF] ..
24+
cmake [-G generator] [-DYAML_BUILD_SHARED_LIBS=on|OFF] ..
2525
```
2626

2727
* The `generator` option is the build system you'd like to use. Run `cmake` without arguments to see a full list of available generators.
2828
* On Windows, you might use "Visual Studio 12 2013" (VS 2013 32-bits), or "Visual Studio 14 2015 Win64" (VS 2015 64-bits).
2929
* On OS X, you might use "Xcode".
3030
* On a UNIX-like system, omit the option (for a Makefile).
3131

32-
* `yaml-cpp` builds a static library by default, you may want to build a shared library by specifying `-YAML_BUILD_SHARED_LIBS=ON`.
32+
* `yaml-cpp` builds a static library by default, you may want to build a shared library by specifying `-DYAML_BUILD_SHARED_LIBS=ON`.
3333

3434
* For more options on customizing the build, see the [CMakeLists.txt](https://github.com/jbeder/yaml-cpp/blob/master/CMakeLists.txt) file.
3535

0 commit comments

Comments
 (0)