CMake: don't depend on C++ compiler for main build

Only the tests actually require a C++ compiler, however CXX is globally
enabled for the project, which prevents building on targets that do
not have a C++ compiler available.

Only enable C++ support selectively when building the tests is enabled
too.

Signed-off-by: Florian Larysch <fl@n621.de>
1 file changed