Skip to contentSkip to conversation

libwebsockets: disable checks for C++ compiler

PATCH New Samuel Martin 2 participants 2 messages May 2, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libwebsockets: disable checks for C++ compiler

Since libwesockets in written in pure C, no C++, there is no reason to disable it or make the configuration failed when the toolchain has no C++ support.

Unfortunately, CMake defaults sets C and C++ as languages used by the project. This makes the configuration failed if no C++ compiler is found.

This patch just make the CMake code of libwebsockets reflecting the real status of the project with regard to the languages used.

Should fix:
http://autobuild.buildroot.org/results/fef/fef98ef289d44d13ec61025c50febba1e835b421/

---
 ...ckets-0001-cmake-set-the-project-language.patch | 34 ++++++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 package/libwebsockets/libwebsockets-0001-cmake-set-the-project-language.patch
package/libwebsockets/libwebsockets-0001-cmake-set-the-project-language.patch new file +34 -0
new file mode 100644
index 0000000..7b017a7
@@ -0,0 +1,34 @@
+From 6ab441e0509a9fda179fd1febf73d0f9fae321d6 Mon Sep 17 00:00:00 2001
+From: Samuel Martin <[email protected]>
+Date: Fri, 2 May 2014 14:24:58 +0200
+Subject: [PATCH] cmake: set the project language
+
+By default, CMake sets C and C++ as languages used by the project.
+This makes the configuration failed if no C++ compiler is found.
+
+Since libwesockets in written in pure C, no C++, there is no reason to
+disable it when the toolchain has no C++ support.
+
+This patch just make the CMake code reflecting the real status of the
+project with regard to the languages used.
+
+Signed-off-by: Samuel Martin <[email protected]>
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index f1b6ace..72391b0 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,6 +1,6 @@
+ cmake_minimum_required(VERSION 2.6)
+ 
+-project(libwebsockets)
++project(libwebsockets C)
+ 
+ set(PACKAGE "libwebsockets")
+ set(CPACK_PACKAGE_NAME "${PACKAGE}")
+-- 
+1.9.2
+
Signature · 1 line
1.9.2
#1 lore raw

PATCH 1/1 libwebsockets: disable checks for C++ compiler

Quoted 9 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Samuel" == Samuel Martin <[email protected]> writes:

Since libwesockets in written in pure C, no C++, there is no reason to disable it or make the configuration failed when the toolchain has no C++ support.

Unfortunately, CMake defaults sets C and C++ as languages used by the project. This makes the configuration failed if no C++ compiler is found.

Quoted 7 lines

This patch just make the CMake code of libwebsockets reflecting the real status of the project with regard to the languages used.

Should fix:
http://autobuild.buildroot.org/results/fef/fef98ef289d44d13ec61025c50febba1e835b421/

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard