Todd Gamblin tgamblin at llnl.gov
Mon Jul 5 01:46:15 EDT 2010

The documentation here:


is in conflict with the documentation here:


And this thread (though it's from 2008) seems to imply that the second link above is right, even though the first is more current:


I'm using CMake 2.8.2, and I'm noticing that CMAKE_COMPILER_IS_GNUC is empty, which conflicts with the latest documentation on the wiki.  This makes it hard to do things like this:

> 	for (lang C CXX Fortran)
> 		if (CMAKE_COMPILER_IS_GNU${lang})
> 			...
> 		endif()
> 	endfor()

Looking through the CMake source, it doesn't look like CMAKE_COMPILER_IS_GNUFortran is used anywhere.  I tested it, and it looks like it's empty too.  Would it be possible to add CMAKE_COMPILER_IS_GNUC and CMAKE_COMPILER_IS_GNUFortran so that they actually work?  I think this would be more consistent than the current setup.

These issues are coming up in the platform files I'm making for BlueGeneP.  I think writing things like this would be easier if this were more consistent.


More information about the CMake mailing list