[CMake] Fwd: How to setup toolchain correctly for C compiler only (no CXX present for target)
Bjørn Forsman
bjorn.forsman at gmail.com
Mon Sep 19 13:45:08 EDT 2011
Forgot to CC list...
---------- Forwarded message ----------
From: Bjørn Forsman <bjorn.forsman at gmail.com>
Date: 2011/9/19
Subject: Re: [CMake] How to setup toolchain correctly for C compiler
only (no CXX present for target)
To: Martin Kupke <martin.kupke at novero.com>
On 19 September 2011 18:58, Martin Kupke <martin.kupke at novero.com> wrote:
> Is there a way to setup the toolchain file in a way to work only with a C
> compiler?
Maybe (I don't know), but you can easily do it in the CMakeLists.txt
file of your project:
project(myproject C)
Since the source code dictates what compiler it must be built with, I think
you actually want to define it like above, and not in the toolchain
file (which can
be used with C *and* C++ projects).
Best regards,
Bjørn Forsman
More information about the CMake
mailing list