Hi,

Thank you for your very quick response Hannes! I tried to set 
SET(CMAKE_Fortran_FLAGS_INIT "...") in my CMakeLists.txt, but since it didn't 
work I tried to dig a bit deeper.

It seems that my early assumptions were wrong, if I enter the folder 
CMakeFiles/CompilerIdFortran/ and try to compile manually I get the following 
output:
$ lf95 CMakeFortranCompilerId.F 
Encountered 0 errors, 0 warnings in file CMakeFortranCompilerId.F.
/tmp/asmHexTje.s: Assembler messages:
/tmp/asmHexTje.s:51: Error: suffix or operands invalid for `push'

Does anyone know what this means? I hardly know what an assembler is.. 

Yngve

On Monday 20 September 2010 14:16:37 you wrote:
> Hi,
> 
> Try to SET(CMAKE_C_FLAGS_INIT "...") and SET(CMAKE_CXX_FLAGS_INIT "...") in 
> either your toolchain or platform file, you can add these variables for 
> example in the GUI as well.
> 
> Hope it helps. I use this in a toolchain file with the diab compiler for 
> VxWorks on Windows and it works pretty good.
> 
> - Hannes
> 
> -----Original Message-----
> From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of 
> Yngve Inntjore Levinsen
> Sent: Montag, 20. September 2010 13:36
> To: cmake@cmake.org
> Subject: [CMake] pass compile flags to initial compiler test
> 
> I am trying to use a rather vanilla compiler for my CMake project 
> (Lahey-Fujitsu lf95 fortran compiler). This compiler (or perhaps just the 
> particular version I have available) does only compile 32bit binaries, so on 
> 64bit systems the initial test fails. In order for the test to succeed I need 
> to pass some flags to the cmake script to be used for this initial testing, 
> but I have not succeeded in finding information about how to do this. Anybody 
> knows?
> 
> Thanks in advance for your help!
> 
> Best Regards
> Yngve I. Levinsen
> _______________________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at 
> http://www.kitware.com/opensource/opensource.html
> 
> Please keep messages on-topic and check the CMake FAQ at: 
> http://www.cmake.org/Wiki/CMake_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
> ---
> This communication contains confidential information. If you are not the 
> intended recipient please return this email to the sender and delete it from 
> your records.
> 
> Diese Nachricht enthält vertrauliche Informationen. Sollten Sie nicht der 
> beabsichtigte Empfänger dieser E-mail sein, senden Sie bitte diese an den 
> Absender zurück und löschen Sie die E-mail aus Ihrem System.
> 
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to