[CMake] Choosing between debug and release variants of third-party libraries

Torsten Martinsen tma at gatehouse.dk
Wed Nov 14 09:30:23 EST 2007


Bill Hoffman <mailto:bill.hoffman at kitware.com> wrote:

> The module FindQt4.cmake handles debug and release qtmain already.
> See Modules/FindQt4.cmake and Modules/UseQt4.cmake for more
> information.

Indeed, that module *defines* QT_QTCORE_LIBRARY_RELEASE, QT_QTCORE_LIBRARY_DEBUG, etc.
But that does not solve the problem of how to *use* those variables in TARGET_LINK_LIBRARIES()
without getting the 'It is impossible to order the linker search path in such a way that libraries
specified as full paths will be picked by the linker' error.

Am I doing something wrong, or is this a bug?

-Torsten

This e-mail and any files sent with it contain information that may be privileged or confidential and is the property of the GateHouse Group. This information is intended solely for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use the message or any part thereof. If you have received this e-mail in error, please notify the sender immediately, and delete all copies of this message. In accordance with GateHouse Security Policy, e-mails sent or received may be monitored.


More information about the CMake mailing list