Minor fix to CMakeLists.txt to disable C++ compiler check
PATCH 1/1 Minor fix to CMakeLists.txt to disable C++ compiler check
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
Signature · 2 lines
Thomas Petazzoni http://www.free-electrons.com
PATCH 1/1 Disable check for C++ compiler
# HG changeset patch
# User Thomas Petazzoni <[email protected]> # 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.
CMakeLists.txt +1 -1
@@ -1,4 +1,4 @@ -project(unionfs-fuse) +project(unionfs-fuse C) cmake_minimum_required(VERSION 2.0) INCLUDE (CheckIncludeFiles)