CMakeLists.txt: Don't require a C++ compiler 1317/head
authorPeter Korsgaard <peter@korsgaard.com>
Mon, 4 Jan 2021 08:05:42 +0000 (09:05 +0100)
committerFabrice Fontaine <fontaine.fabrice@gmail.com>
Mon, 4 Jan 2021 08:14:20 +0000 (09:14 +0100)
commit4d147d9630653e4c93a70a2a8026c323ed1042d2
treeceda37abf8603ae1846f6b4110ff7abe9ef11fc2
parent2519439d7d4d0e51abf479afe73f30b1c7c70530
CMakeLists.txt: Don't require a C++ compiler

By default, CMake assumes that the project is using both C and C++.  By
explicitly passing 'C' as argument of the project() macro, we tell CMake
that only C is used, which prevents CMake from erroring out if a C++
compiler doesn't exist.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
[Retrieved (and slightly updated by adding enable_language(CXX) if
WITH_ASTYLE is set) from:
https://git.buildroot.net/buildroot/tree/package/openjpeg/0003-CMakeLists.txt-Don-t-require-a-C-compiler.patch]
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
CMakeLists.txt
thirdparty/CMakeLists.txt