[CMake] PGI's pgCC compiler?

Brad King brad.king at kitware.com
Thu Jun 12 10:26:04 EDT 2008


Fernando Cacciola wrote:
> It seems that pgCC is not supported even in 2.6.
> 
> In that case it is just a matter of adding a "pgcc.cmake" file with the
> appropiate settings right? or would the CMake binary itself need some
> patch?

It is supported in 2.6.  The Modules directory has files

  Platform/Linux-PGI-C.cmake
  Platform/Linux-PGI-CXX.cmake
  CMakeCCompilerId.c.in
  CMakeCXXCompilerId.cpp.in

The first two files have some flag configuration options for the
compiler (this is a newer naming convention than "pgcc.cmake").  The
last two files are used to identify the specified compiler, and they do
contain "PGI" identification support.  We've used it to cross-compile
from Linux to Catamount.

Have you actually tried it?

FYI, since 2.6.0 was released some improved support with more flags and
the Fortran compiler has been contributed.  That will be in 2.6.1.

-Brad


More information about the CMake mailing list