[CMake] Problems with Intel Fortran 11 on Windows XP
Arjen Markus
arjen.markus at wldelft.nl
Thu Dec 18 03:36:08 EST 2008
>> -----Original Message-----
>> OK, but we can't just apply the patch to CMake as it would break the
>> older version of Fortran. Is there a way to detect which version is
>> installed from the registry or something? I am glad you are working,
>> but to get a solution for everyone, we need to go the extra mile and
>> some how automatically put the correct version in the file
>> and not break
>> older versions of Fortran.
>
> Yes, I understand, but I assume you can fix this in a future version?
>
> As for detecting the version of Fortran, you can look at this:
>
> [HKEY_LOCAL_MACHINE\SOFTWARE\Intel\Compilers\Fortran\110.066]
> "Revision"=dword:00000042
> "Minor Version"=dword:00000000
> "Major Version"=dword:0000000b
>
> The only problem is the "110.066" part in the address, but as this is
> the only "folder" under
> HKEY_LOCAL_MACHINE\SOFTWARE\Intel\Compilers\Fortran
> i guess it is doable to detect the compiler version (b is of course hex
> for 11).
>
Would that not break when there are several versions installed?
Perhaps the output from ifort /what helps a bit:
Intel(R) Visual Fortran Compiler for applications running on IA-32,
Version 10.1 Build 20070913 Package ID: w_fc_p_10.1.011
Copyright (C) 1985-2007 Intel Corporation. All rights reserved.
ifort: command line error: no files specified; for help type "ifort /help"
(Pity they do not use /v or -v ...)
Regards,
Arjen
More information about the CMake
mailing list