2f1c23c28b53973793fb8216371fdd00cb71a01b
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / libiqrf / 0002-use-only-c-language.patch
1 Use only the C language
2
3 libirqf is written completely in C, but by default, CMake assumes that
4 both C and C++ are used, and therefore verifies that a C++ compiler is
5 installed. This may not necessarily be the case for a C-only package
6 in Buildroot.
7
8 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9
10 Index: 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)
20 Index: 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