Turn off C++ API in CMake script by default
authorIvan Maidanski <ivmai@mail.ru>
Wed, 5 Jun 2019 06:53:15 +0000 (09:53 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 5 Jun 2019 06:53:15 +0000 (09:53 +0300)
commit7804427d649d5850c3bc4bd71298eaff504a5a1c
tree76ec91f83bcc203bf4e8ba02061f25c4cf908c5b
parent5b8507a988f92907eaa0a264cbe7228bce65adb4
Turn off C++ API in CMake script by default

Issue #281 (bdwgc).

This is to match the behavior of configure script.
Now, -Denable_cplusplus=ON should be passed to cmake to enable C++ API.

* CMakeLists.txt (enable_cplusplus): Add option (off by default);
remove TODO.
* CMakeLists.txt (SRC): Add gc_cpp.cc only if enable_cplusplus.
* tests/CMakeLists.txt (leak_test.c, test.c): Set CXX langunage
property only if enable_cplusplus.
* tests/CMakeLists.txt [enable_cplusplus]: Add TODO to add test_cpp as
a test.
CMakeLists.txt
tests/CMakeLists.txt