>
> 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
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to