[CMake] Specifying different flags for debug/release mode

Clinton Stimpson clinton at elemtech.com
Mon Dec 10 10:37:35 EST 2007


Christian Ehrlicher wrote:
> Hi,
>
> ist there something like target_link_libraries(debug fooD.lib release foo.lib) possible for flags?
> It's needed to make Qt plugins work (yes, you can't properly build Qt plugins on windows with cmake).
>
>
> Christian
>   
This was fixed recently in CVS for Qt projects.   If you want to grab 
it, build it and give it a try, go ahead.
Or you can stick with whatever CMake version you're using and copy what 
it does in UseQt4.cmake to define QT_NO_DEBUG into your project's 
CMakeLists.txt file.
http://www.cmake.org/cgi-bin/viewcvs.cgi/Modules/UseQt4.cmake?root=CMake&view=markup

Clint



More information about the CMake mailing list