xref: /OK3568_Linux_fs/buildroot/package/libiqrf/0002-use-only-c-language.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1Use only the C language
2
3libirqf is written completely in C, but by default, CMake assumes that
4both C and C++ are used, and therefore verifies that a C++ compiler is
5installed. This may not necessarily be the case for a C-only package
6in Buildroot.
7
8Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9
10Index: b/src/CMakeLists.txt
11===================================================================
12--- a/src/CMakeLists.txt
13+++ b/src/CMakeLists.txt
14@@ -1,5 +1,3 @@
15-project(iqrf)
16-
17 set (iqrf_version_major 0)
18 set (iqrf_version_minor 1)
19 set (iqrf_version_patch 2)
20Index: b/CMakeLists.txt
21===================================================================
22--- a/CMakeLists.txt
23+++ b/CMakeLists.txt
24@@ -1,3 +1,5 @@
25+project(iqrf C)
26+
27 cmake_minimum_required(VERSION 2.8.1)
28 enable_testing()
29
30