[Qt-creator] specifying QMAKE_CXXFLAGS in the build configuration
Lorenzo Bettini
lorenzo.bettini at gmail.com
Tue Mar 15 11:50:44 CET 2011
Hi
I have a specific build configuration where I'd like to specify a -D
compiler option with a variable and a value with spaces.
Please note that I do not want to use DEFINES in the .pro file, since
I'd like to specify this value only in a build configuration
I set
QMAKE_CXXFLAGS="-DMY_VAR=my value"
now, I don't understand how to use the quotations correctly in the
"Build Steps" dialog in qt-creator...
on the command line, I would run qmake as follows
qmake QMAKE_CXXFLAGS="-DMY_VAR=\\\"\\\\\\\"my value\\\\\\\"\\\""
../myproj/myproj.pro
and it would work...
if I try to set in the "Build Steps" dialog, in qmake additional arguments,
QMAKE_CXXFLAGS="-DMY_VAR=\\\"\\\\\\\"my value\\\\\\\"\\\""
all the double quotes are removed in the "effective qmake call"...
any clue please?
thanks in advance
Lorenzo
--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com
More information about the Qt-creator-old
mailing list