On 2008-07-02 11:41+0100 Mike Arthur wrote:

I'm wanting to try and add C(XX)FLAGS by using an environment variable so I
can pass "-fmessage-length=0" only when compiling inside Eclipse.

Is there any way to do this? CMake doesn't seem to respect C(XX)FLAGS as
environment variables at "make" time.

Try putting C options in CC environment variable, like

export CC='gcc -g'

This used to be documented at
http://www.cmake.org/Wiki/CMake_Useful_Variables,
but somebody removed it in error.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to