[cmake-developers] Identifying GNU C Compiler

Rolf Eike Beer eike at sf-mail.de
Mon Jan 16 14:58:43 EST 2012


According to documentation you can use the following variable to check if your 
compiler is the GNU one:

 CMAKE_COMPILER_IS_GNU<LANG>

Well, this is actually only true for C++ as in CXX. If your language is C, 
then LANG is not C, but CC. If your language is Fortran, LANG is neither 
FORTRAN nor Fortran, but G77.

Confusing, isn't it?

Eike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20120116/35c811a3/attachment.sig>


More information about the cmake-developers mailing list