* [Buildroot] [PATCH 0 of 1] Minor fix to CMakeLists.txt to disable C++ compiler check
@ 2012-10-14 9:35 Thomas Petazzoni
2012-10-14 9:35 ` [Buildroot] [PATCH 1 of 1] Disable check for C++ compiler Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Thomas Petazzoni @ 2012-10-14 9:35 UTC (permalink / raw)
To: buildroot
Radek,
You'll find in the following e-mail a patch that disables the unneeded
(and sometimes problematic) C++ compiler check from CMakeLists.txt. It
has been found while using unionfs-fuse in the context of the
Buildroot embedded Linux build system (http://www.buildroot.org), for
which we sometimes use toolchains that don't have C++ support.
Thanks,
Thomas
--
Thomas Petazzoni
http://www.free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH 1 of 1] Disable check for C++ compiler
2012-10-14 9:35 [Buildroot] [PATCH 0 of 1] Minor fix to CMakeLists.txt to disable C++ compiler check Thomas Petazzoni
@ 2012-10-14 9:35 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2012-10-14 9:35 UTC (permalink / raw)
To: buildroot
# HG changeset patch
# User Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
# Date 1350206855 -7200
# Node ID e33fa7a0d77ca247f73db7f36722261319521951
# Parent 6f2b87c8b1f3bf88e9d0a75191e4f8efb1bcc791
Disable check for C++ compiler
By default, CMake assumes that a project uses both the C and C++
languages, and unionfs-fuse's CMakeLists.txt doesn't explicit which
languages it uses. Therefore CMake checks for both a C compiler and a
C++ compiler, which prevents from building unionfs-fuse on platforms
that don't have a C++ compiler.
We adjust unionfs-fuse CMakeLists.txt to explicity state that we only
use the C language, so that the C++ compiler check is no longer
performed by Cmake.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
diff -r 6f2b87c8b1f3 -r e33fa7a0d77c CMakeLists.txt
--- a/CMakeLists.txt Wed Sep 26 15:55:52 2012 +0200
+++ b/CMakeLists.txt Sun Oct 14 11:27:35 2012 +0200
@@ -1,4 +1,4 @@
-project(unionfs-fuse)
+project(unionfs-fuse C)
cmake_minimum_required(VERSION 2.0)
INCLUDE (CheckIncludeFiles)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-10-14 9:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-14 9:35 [Buildroot] [PATCH 0 of 1] Minor fix to CMakeLists.txt to disable C++ compiler check Thomas Petazzoni
2012-10-14 9:35 ` [Buildroot] [PATCH 1 of 1] Disable check for C++ compiler Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox