[CMake] Problem with Qt4 and release mode on windows
clinton at elemtech.com
clinton at elemtech.com
Thu Nov 8 11:58:47 EST 2007
>
> when I compile a qt plugin in release mode (and therefore link against
> release qt lib) I've the problem that cmake does not set -DQT_NO_DEBUG .
In any file you use the Q_EXPORT_PLUGIN2 macro, you can put something like
this:
#if defined(NDEBUG)
# define QT_NO_DEBUG
#endif
at the top of the file.
I don't see a way to do something like
ADD_DEFINTIONS(-DQT_NO_DEBUG)
for a release configuration only.
Clint
More information about the CMake
mailing list