How to set CXXFLAGS with CMake?

Michael Pyne michael.pyne at kdemail.net
Mon Apr 17 00:18:34 CEST 2006


Hi all,

I've had a problem report from a kdesvn-build that when setting CXXFLAGS to 
something like -march=i686 that CMake would complain about the '=' character.  
He also reports that setting the CFLAGS environment variable instead does 
work.

kdesvn-build passes CXXFLAGS to CMake like this right now:

cmake -DCMAKE_CXX_FLAGS="$cxxflags" other-options...

The cxxflags are correctly passed as one argument (i.e. no shell IFS stuff is 
going on).

Is there a preferred method to set CXXFLAGS for CMake, or am I doing the right 
thing and it's a CMake bug?  The CMake version is the 20060317 snapshot.

Regards,
 - Michael Pyne
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-buildsystem/attachments/20060417/0896b9cc/attachment.pgp 


More information about the Kde-buildsystem mailing list