[CMake] pass compile flags to initial compiler test
Molsen, Hannes
Hannes.Molsen at draeger.com
Mon Sep 20 08:17:10 EDT 2010
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-bounces at cmake.org [mailto:cmake-bounces at cmake.org] On Behalf Of Yngve Inntjore Levinsen
Sent: Montag, 20. September 2010 13:36
To: cmake at 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.
More information about the CMake
mailing list