[Cmake] Debug or Release
Robert Mathews
rmathews@envoyww.com
Tue, 13 May 2003 11:36:14 -0400
Have you tried something like this:
# These are the default libraries for everyone, then for
# debug and then for release mode
LINK_LIBRARIES(
advapi32.lib
kernel32.lib
ole32.lib
oleaut32.lib
rpcndr.lib
rpcns4.lib
rpcrt4.lib
uuid.lib
adimgr.lib
agm.lib
cta.lib
ics2api.lib
imagehlp.lib
isdnapi.lib
lib44bsd.lib
libtiff.lib
Msacm32.lib
nccapi.lib
netapi32.lib
nfxmgr.lib
swimgr.lib
vcemgr.lib
ws2_32.lib
debug
des.lib
libbind.lib
optimized
des_release.lib
libbind_release.lib
)
----- Original Message -----
From: "Patrick Rochon" <prochon@stelvio.com>
To: <cmake@public.kitware.com>
Sent: Tuesday, May 13, 2003 11:01 AM
Subject: [Cmake] Debug or Release
> Hi,
>
> I am building a .DLL.
>
> I am using cmake to generate VisualStudio7 project files.
>
> Is it possible to link with a .lib in Debug and a different .lib in
Release
> ?
>
> I think that is possible using something like this :
>
> IF(DEBUG)
> LINK_LIBRARIES(rxmd.lib)
> ELSE(DEBUG)
> LINK_LIBRARIES(rxmr.lib)
> ENDIF(DEBUG)
>
> But, I can't find the exact "IF" command.
>
> Thank you!
>
> Patrick Rochon
> Code Administrator
> Stelvio inc.
>
>
> _______________________________________________
> Cmake mailing list
> Cmake@public.kitware.com
> http://public.kitware.com/mailman/listinfo/cmake
>