[CMake] Compaq Visual Fortran

Arjen Markus arjen.markus at deltares.nl
Thu Jan 28 08:40:44 EST 2010


Hi Brad,

it does not work - I get a message that the Fortran compiler
identification is unknown. Does CMake run the compiler with the
/fpp option? If not, then that is the cause (without there is
no particular macro defined)

Regards,

Arjen

On 2010-01-28 14:27, Brad King wrote:
> Arjen Markus wrote:
>> If you turn on the preprocessor option, then a number of macros
>> are defined, the most useful being:
>>
>> _DF_VERSION_=660 and _VF_VERSION_==660
> 
> Please try out the patch below (applies to CMake from CVS HEAD).
> With it, CMake should recognize the Compaq compiler out of the box.
> It won't know what flags to use without the compiler info files, but
> at least it should report the compiler identification.  If that works
> for you I'll commit it upstream.  Then we can work on the compiler
> info files.
> 
> Thanks,
> -Brad
> 
> diff --git a/Modules/CMakeFortranCompilerId.F.in b/Modules/CMakeFortranCompilerId.F.in
> index 107470c..a9aec76 100644
> --- a/Modules/CMakeFortranCompilerId.F.in
> +++ b/Modules/CMakeFortranCompilerId.F.in
> @@ -10,6 +10,8 @@
>          PRINT *, 'INFO:compiler[G95]'
>  #elif defined(__PATHSCALE__)
>          PRINT *, 'INFO:compiler[PathScale]'
> +#elif defined(_DF_VERSION_) || defined(_VF_VERSION_)
> +        PRINT *, 'INFO:compiler[Compaq]'
>  #elif defined(__GNUC__)
>          PRINT *, 'INFO:compiler[GNU]'
>  #elif defined(__IBMC__)
> 


More information about the CMake mailing list