1From 8b0a8b2be8cf2e4a76c03d3bcdf99bff5025ba22 Mon Sep 17 00:00:00 2001 2From: "Arnout Vandecappelle (Essensium/Mind)" <arnout@mind.be> 3Date: Sat, 31 Mar 2018 22:50:37 +0200 4Subject: [PATCH] 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 11Upstream status: https://github.com/mossmann/hackrf/pull/469 12 13This patch differs from upstream because: 14- project name upstream has been changed into HackRF; 15- in Buildroot, we are only interested in host, not firmware. 16 17Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> 18--- 19 host/CMakeLists.txt | 2 +- 20 1 file changed, 1 insertion(+), 1 deletion(-) 21 22diff --git a/host/CMakeLists.txt b/host/CMakeLists.txt 23index 874163f..d9cbe31 100644 24--- a/host/CMakeLists.txt 25+++ b/host/CMakeLists.txt 26@@ -1,7 +1,7 @@ 27 #top dir cmake project for libhackrf + tools 28 29 cmake_minimum_required(VERSION 2.8) 30-project (hackrf_all) 31+project (hackrf_all C) 32 33 add_subdirectory(libhackrf) 34 add_subdirectory(hackrf-tools) 35-- 362.16.3 37 38