Build gc as a shared library by default (CMake)
authorIvan Maidanski <ivmai@mail.ru>
Tue, 18 Jun 2019 08:46:32 +0000 (11:46 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 18 Jun 2019 08:46:32 +0000 (11:46 +0300)
commit1d0d636a51b7396972ba777f2db8ca07ddc55f11
treee230b81880488776487e6cd79c210da1e0c4105b
parent401a332edf71c0342c34281a530fa6df7beff49e
Build gc as a shared library by default (CMake)

Issue #281 (bdwgc).

* CMakeLists.txt (BUILD_SHARED_LIBS): Document option and set default to ON.
* CMakeLists.txt: Remove commented out ADD_LIBRARY for atomic_ops.
* CMakeLists.txt [BUILD_SHARED_LIBS] (SRC): Override to extra/gc.c.
* CMakeLists.txt [BUILD_SHARED_LIBS] (GC_DLL): Define macro.
* CMakeLists.txt [!BUILD_SHARED_LIBS] (GC_NOT_DLL): Define macro not only
for tests but also for gc library.
* CMakeLists.txt (gc): Remove STATIC in add_library specification.
CMakeLists.txt