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

Attachment: signature.asc
Description: This is a digitally signed message part.

--

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://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to