Use cmake-standard flag BUILD_SHARED_LIBS

This removes custom `BUILD_DYNAMIC_LIB` option and replaces it with a
standard BUILD_SHARED_LIBS:
https://cmake.org/cmake/help/v3.7/variable/BUILD_SHARED_LIBS.html

Although not mentioned in the documentation there, this flag is
implicitly available.
This commit is contained in:
Michał Janiszewski
2017-11-12 23:19:27 +01:00
parent 2f54e62c23
commit 1ec00e9570
3 changed files with 10 additions and 14 deletions

View File

@@ -42,7 +42,7 @@ Sometimes I use the generated project files. There are a couple of CMake options
| flag | default | does |
|------|---------|------|
| `ENABLE_IO_THREAD` | `ON` | When enabled, we start up a thread to do io processing, if disabled you should call `Discord_UpdateConnection` yourself.
| `BUILD_DYNAMIC_LIB` | `OFF` | Build library as a DLL
| `BUILD_SHARED_LIBS` | `OFF` | Build library as a DLL
## Sample: send-presence