[CMake] debug vs. release Qt compile flags

Clinton Stimpson clinton at elemtech.com
Tue Feb 13 08:29:58 EST 2007


How can one set configuration dependent preprocessor defines?
For example, a release build of Qt based code should be built with 
-DQT_NO_DEBUG (which qmake does automatically).
Ideally, that would go in the UseQt4.cmake file so CMake projects get it 
automatically.
Otherwise, it requires extra work for those who make plugins.

Clint



More information about the CMake mailing list