[CMake] Compaq Visual Fortran
Arjen Markus
arjen.markus at deltares.nl
Thu Jan 28 09:12:44 EST 2010
Hi Brad,
the program is compiled and linked without a problem. But
it writes:
INFO:compiler[]
INFO:platform[Windows]
I have examined the preprocessed source code and re-read the
online documentation: all the macros defined in the table I
looked at are available to the preprocessor, except, indeed
_DF_VERSION_ and _VF_VERSION_.
I tried to set the flag -fpp to /fpp /D_DF_VERSION_=660 to
force the definition, but the compipler sees these flags
as a single flag and stops.
Regards,
Arjen
On 2010-01-28 14:53, Brad King wrote:
> Arjen Markus wrote:
>> 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)
>
> In CMakeDetermineFortranCompiler.cmake we list the possible flags
> to try if it can't find a compiler id:
>
> SET(CMAKE_Fortran_COMPILER_ID_TEST_FLAGS
> # Try compiling to an object file only.
> "-c"
>
> # Intel on windows does not preprocess by default.
> "-fpp"
> )
>
> It should have tried -fpp. Look in CMakeFiles/CMakeError.log
> to see if it reports what happened.
>
> Also, please try building the compiler id source by hand.
> Copy "CMakeFortranCompilerId.F.in" and rename it to drop
> the ".in" part. Then run
>
> f90 -fpp CMakeFortranCompilerId.F
>
> Please send me whatever files this produces.
>
> Thanks,
> -Brad
>
More information about the CMake
mailing list