Forgot to CC list...
---------- Forwarded message ---------- From: Bjørn Forsman <[email protected]> Date: 2011/9/19 Subject: Re: [CMake] How to setup toolchain correctly for C compiler only (no CXX present for target) To: Martin Kupke <[email protected]> On 19 September 2011 18:58, Martin Kupke <[email protected]> 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 _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
