On Monday 21 April 2008 17:05:32 [EMAIL PROTECTED] wrote:
> 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' :-(.
Use 'optimized' instead of 'release'. Both libraries could be put into single 
statement:

TARGET_LINK_LIBRARIES (fooexe DEBUG lib_debug OPTIMIZED lib)
or
set(mylib_LIBS DEBUG mylib_debug OPTIMIZED mylib)

TARGET_LINK_LIBRARIES (fooexe ${mylib_LIBS})


second apporach is better, because it can be used in conjunction with 
find_library() when project grows up.

>
>
>
> 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


_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to