[CMake] Status of clang support?

Marcus D. Hanwell marcus.hanwell at kitware.com
Sun Oct 24 15:07:46 EDT 2010


On Sun, Oct 24, 2010 at 2:58 PM, Michael Wild <themiwi at gmail.com> wrote:
>
> On 24. Oct, 2010, at 17:33 , Mateusz Loskot wrote:
>
>> Hi,
>>
>> I'm trying to find out what's the status of clang support in CMake.
>> What version of CMake is recommended to make proper use of clang 2.8+
>> for building a C++ software, etc.
>>
>> Feeding the favourite search engine with this:
>>
>> clang site:http://www.cmake.org/pipermail/cmake/
>>
>> gives me literally 4 pages os results, but no announcement-like posts.
>>
>>
>> Best regards,
>> --
>> Mateusz Loskot, http://mateusz.loskot.net
>> Charter Member of OSGeo, http://osgeo.org
>> Member of ACCU, http://accu.org
>
> Hi
>
> Clang's UI is a clone of gcc's, so there's very little extra work CMake has to perform. For me it works flawlessly. I don't know about the earliest version to support Clang, but AFAIK 2.8 works well.
>
I echo Michael's reports, setting it as the compiler just works for
many projects. The ones where it fails it is a compilation issue, and
I have used CMake 2.8.2 with several projects to test out the Clang
support.

Marcus


More information about the CMake mailing list