[CMake] Using debug libraries in Qt frameworks with both debug and release libraries

Clinton Stimpson clinton at elemtech.com
Tue Jun 9 11:32:45 EDT 2009


Its done at runtime by setting the DYLD_IMAGE_SUFFIX environment 
variable to "_debug"
http://developer.apple.com/documentation/Darwin/Reference/Manpages/man1/dyld.1.html

You can also add your own softlinks in the framework if you want to make 
your own suffix as _debug is common and will pull in other debug libs 
than just the Qt ones.

Clint

Moreland, Kenneth wrote:
> I recently compiled Qt on my Mac with frameworks that contain both 
> debug and release versions of their libraries.  I hoped (perhaps 
> naively) that the debug libraries would be used whenever I performed a 
> debug compile of ParaView.  No such luck.  The release libraries are 
> always used.  Does anyone know how to get CMake to grab the debug 
> libraries from the Qt frameworks during debug builds?
>
> -Ken
>
>    ****      Kenneth Moreland
>     ***      Sandia National Laboratories
> ***********  
> *** *** ***  email: kmorel at sandia.gov
> **  ***  **  phone: (505) 844-8919
>     ***      web:   http://www.cs.unm.edu/~kmorel 
> <http://www.cs.unm.edu/%7Ekmorel>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake



More information about the CMake mailing list