[CMake] Different link behaviour for targets Debug and Release needed

f.bilz at bally-wulff.de f.bilz at bally-wulff.de
Mon Apr 21 09:05:32 EDT 2008


Falko Bilz schrieb am 21.04.2008 15:05
_____________________________________________________________________

Hello,

 

How can I set specific link libraries for the two different targets
'Debug' and 'Release' ? I've tried

'TARGET_LINK_LIBRARIES ( fooexe DEBUG lib_debug )' (remark: lib_debug is
needed for fooexe in debug version)

And in addition

'TARGET_LINK_LIBRARIES ( fooexe RELEASE lib )' (remark: lib is needed
for fooexe in release version)

but it don't produces what I want.

 

I've also tested 'TARGET_LINK_LIBRARIES ( fooexe debug lib_debug )' with
success (i.e. lib_debug is used for Target 'Debug' only), but an
additional 'TARGET_LINK_LIBRARIES ( fooexe release lib )' includes 'lib'
in 'Release' and 'Debug' :-(.

 

Any suggestions ?

TIA

 


Bally Wulff Entertainment GmbH, Maybachufer 48-51, 12045 Berlin, Postanschrift: Postfach 44 01 57, 12001 Berlin Tel.: 030-620 02-0 FAX: 030-620 02-200, Geschaftsfuhrer: Axel Herr, Amtsgericht Berlin-Charlottenburg, HRB 91532 B, UST-ID DE 234 517 998
_____________________________________________________________________
Dieses E-Mail ist nur fur den Empfanger bestimmt, an den es gerichtet
ist und kann vertrauliches bzw. unter das Berufsgeheimnis fallendes
Material enthalten. Jegliche darin enthaltene Ansicht oder Meinungs-
au?erung ist die des Autors und stellt nicht notwendigerweise die
Ansicht oder Meinung von Bally Wulff Entertainment GmbH dar.
Sind Sie nicht der Empfanger, so haben Sie diese E-Mail irrtumlich
erhalten und jegliche Verwendung, Veroffentlichung, Weiterleitung,
Abschrift oder jeglicher Druck dieser E-Mail ist strengstens untersagt.

Weder Bally Wulff Entertainment GmbH noch der Absender (Falko Bilz)
ubernehmen die Haftung fur Viren; es obliegt Ihrer Verantwortung,
die E-Mail und deren 0 Anhange auf Viren zu prufen.
0 Anhange:

_____________________________________________________________________
Versand am 21.04.2008 15:05 von Bilz Falko

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080421/73466d08/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 3768 bytes
Desc: not available
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080421/73466d08/attachment-0001.gif>


More information about the CMake mailing list