[CMake] Compaq Fortran 6.1 detection fails under Windows

William A. Hoffman billlist at nycap.rr.com
Tue Jun 20 09:26:10 EDT 2006


At 08:34 AM 6/20/2006, Philippe Poilbarbe wrote:
>Brad King a écrit :
>>Philippe Poilbarbe wrote:
>>>Hello,
>>>
>>>...
>>>F90: error: Switch '-o' is ambiguous
>>>...
>>>The fortran compiler if Compaq Fortran 6.1 and it
>>>...
>>>CMake version: 2.4.2
>>
>>That compiler is not known to CMake.  You'll have to set the variable CMAKE_Fortran_COMPILE_OBJECT to teach CMake how to use the compiler. Look at the Modules/Platform/Windows-ifort.cmake file in the CMake installation for an example.
>Thanks.
>
>I have made a Windows-f90.cmake file which is read instead of the default one.
>But now it seems that file names are not correctly generated by TRY_COMPILE
>in CMakeTestFortranCompiler.cmake.
>I can't trap why since the generated files in CMakeFiles/CMakeTmp are
>removed too quickly :)
>
>
>Is there an option of CMake allowing to keep temporary files ?
>

cmake --debug-trycompile




More information about the CMake mailing list