1From 5732174debfe027f7620af55c283060201f0ad03 Mon Sep 17 00:00:00 2001 2From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 3Date: Thu, 2 Nov 2017 22:54:51 +0100 4Subject: [PATCH] CMakeLists: do not require C++ 5 6The project doesn't use C++, so don't let CMake check for a C++ 7compiler by explicitly specifying that this is a C-only project. 8 9Submitted-upstream: https://github.com/Tangent128/luasdl2/pull/69 10Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 11--- 12 common/CMakeLists.txt | 2 +- 13 examples/CMakeLists.txt | 2 +- 14 tutorials/CMakeLists.txt | 2 +- 15 3 files changed, 3 insertions(+), 3 deletions(-) 16 17diff --git a/common/CMakeLists.txt b/common/CMakeLists.txt 18index 9e19709..8cfb748 100644 19--- a/common/CMakeLists.txt 20+++ b/common/CMakeLists.txt 21@@ -15,7 +15,7 @@ 22 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 23 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 24 25-project(common) 26+project(common C) 27 28 set( 29 SOURCES 30diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt 31index 572b3b7..4e3af4d 100644 32--- a/examples/CMakeLists.txt 33+++ b/examples/CMakeLists.txt 34@@ -16,7 +16,7 @@ 35 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 36 # 37 38-project(examples) 39+project(examples C) 40 41 # Option to enable / disable examples installation 42 option(WITH_DOCS "Installation of documentation and examples" On) 43diff --git a/tutorials/CMakeLists.txt b/tutorials/CMakeLists.txt 44index adefbc9..6ec069e 100644 45--- a/tutorials/CMakeLists.txt 46+++ b/tutorials/CMakeLists.txt 47@@ -16,7 +16,7 @@ 48 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 49 # 50 51-project(tutorials) 52+project(tutorials C) 53 54 # Option to enable / disable examples installation 55 option(WITH_DOCS "Installation of tutorials" On) 56-- 572.13.6 58 59