1From 786ddcd1475adc6193c59d53e0d8ed2c502f2b00 Mon Sep 17 00:00:00 2001 2From: Peter Korsgaard <peter@korsgaard.com> 3Date: Sat, 23 Sep 2017 18:49:31 +0200 4Subject: [PATCH] CMakeLists.txt: Don't require a C++ compiler 5 6By default, CMake assumes that the project is using both C and C++. By 7explicitly passing 'C' as argument of the project() macro, we tell CMake 8that only C is used, which prevents CMake from erroring out if a C++ 9compiler doesn't exist. 10 11Submitted upstream: 12https://github.com/uclouvain/openjpeg/pull/1027 13 14Signed-off-by: Peter Korsgaard <peter@korsgaard.com> 15--- 16 CMakeLists.txt | 2 +- 17 1 file changed, 1 insertion(+), 1 deletion(-) 18 19diff --git a/CMakeLists.txt b/CMakeLists.txt 20index ec42bc99..d80eb48b 100644 21--- a/CMakeLists.txt 22+++ b/CMakeLists.txt 23@@ -24,7 +24,7 @@ endif() 24 #string(TOLOWER ${OPENJPEG_NAMESPACE} OPENJPEG_LIBRARY_NAME) 25 set(OPENJPEG_LIBRARY_NAME openjp2) 26 27-project(${OPENJPEG_NAMESPACE}) 28+project(${OPENJPEG_NAMESPACE} C) 29 30 # Do full dependency headers. 31 include_regular_expression("^.*$") 32-- 332.11.0 34 35