[CMake] [PATCH] Support multiple arguments in CC,CXX,FC values
Alan W. Irwin
irwin at beluga.phys.uvic.ca
Mon Mar 15 14:47:12 EDT 2010
On 2010-03-15 09:07-0400 Brad King wrote:
> Teach compiler identification to support values such as
>
> export CC='gcc -g -O2'
>
> by separating the arguments on spaces. We already do this for the
> values of CFLAGS, CXXFLAGS, and FFLAGS.
> ---
>
> Hi Alan,
> Anyway, this patch should fix it. Please test.
I applied that one-liner to rc4, and now my simple test project with
export CC='gcc -g -g'
and also the whole PLplot build with
export CC='gcc -g -fvisibility=hidden'
export CXX='g++ -g -fvisibility=hidden'
export FC='gfortran -g -fvisibility=hidden'
works properly again.
Thanks for this fix!
I hope it gets into 2.8.1.
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
__________________________
More information about the CMake
mailing list