Bill Hoffman wrote:
Joachim Geiger wrote:
Hello,
I have the following problem with a fortran compiler flag I want to be accepted. Compiler is the IBM compiler version 8. The compiler flag I want to be accepted is -qrealsize=8 .
Using CMAKE_VERBOSE_MAKEFILE=ON I see that the compiler flag appears as
-fdefault-real-8
I tried -DCMAKE_Fortran_COMPILE_FLAGS=-qrealsize=8
and also with quotes: ' and ", but the effect is always that it is translated into the above mentioned one.
An additional note: the AIX-compiler is named f95 and is the same as xlf.
Best regards,
Joachim
What if you edit the CMakeCache.txt and fix it there? It may be a command line parsing issue.

-Bill
Hello Bill,
that is the content in the CMakeCache.txt:
//Fortran compiler.
CMAKE_Fortran_COMPILER:FILEPATH=/usr/bin/f95

//No help, variable specified on the command line.
CMAKE_Fortran_COMPILE_FLAGS=-qrealsize:UNINITIALIZED=8

//Flags for Fortran compiler.
CMAKE_Fortran_FLAGS:STRING=-qrealsize=8

So I did not know what to fix there.
However, in the files flags.make and link.txt in the project directory I see the string -fdefault-real-8 . If I edit these, then everything work fine up to the linking process, but there I am facing a problem not related to cmake.
Best regards,
Joachim

--
Joachim Geiger [EMAIL PROTECTED]
Max-Planck-Institute for Plasma Physics,        @\\
  Euratom Association                            \\\
Department Stellaratortheorie (ST)                \\\__
Wendelsteinstr. 1                                (  \\ \
D-17491 Greifswald, Germany                       \_ \\(_
Tel.: ++49 3834/88-2327   Fax: ++49 3834/88-2409    ) \\ \
e-mail: [EMAIL PROTECTED]                   \  -  |
---------------------------------------------------  \____/
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to