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

Torsten Martinsen tma at gatehouse.dk
Wed Nov 7 08:55:35 EST 2007


I'm sure this is a FAQ, but I cannot find the answer anywhere.

Using VS 2003, given that I have a third-party library with debug and release variants:

    /path/to/lib/release/lib.lib
    /path/to/lib/debug/lib.lib

how do I get CMake to link with the correct variant? Using an absolute path in TARGET_LINK_LIBRARIES() does not work, and I cannot use CMAKE_BUILD_TYPE at configure time.

-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