[Cmake] RE: Questions about debug and release modes

Parag Chandra pchandra@radonc.unc.edu
Tue, 25 Feb 2003 11:47:28 -0500


This is a multi-part message in MIME format.

------=_NextPart_000_0094_01C2DCC3.AC1165F0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hey Mark,

I think I can answer this for Windows builds at least. Look at the =
project settings for any CMake-generated .dsp file. If you go to the =
Link tab and select Input from the drop-down list, you'll notice that =
every library path you added to your CMakeLists file will appear on this =
dialog with the Visual Studio variable ${INTDIR} appended to it. =
Following that will be the library path that you specified verbatim. =
INTDIR is a special variable that Visual Studio will replace with the =
name of the target you've selected: 'Debug', 'RelWithDebInfo', etc. The =
order the paths are listed ensures that VS will look for your library in =
the target-specific directory first before looking at the 'generic' =
directory. This behavior can be overridden by passing additional =
parameters to the CMake TARGET_LINK_LIBRARIES command; see the manual =
for details.

Hope this helps.

-Parag Chandra
------=_NextPart_000_0094_01C2DCC3.AC1165F0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1141" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hey Mark,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I think I can answer this for Windows =
builds at=20
least. Look at the project settings for any CMake-generated .dsp file. =
If you go=20
to the Link tab and select Input from the drop-down list, you'll notice =
that=20
every library path you added to your CMakeLists file will appear on this =
dialog=20
with the Visual Studio variable ${INTDIR} appended to it. Following that =
will be=20
the library path that you specified verbatim. INTDIR is a special =
variable that=20
Visual Studio will replace with the name of the target you've selected: =
'Debug',=20
'RelWithDebInfo', etc. The order the paths are listed ensures that VS =
will look=20
for your library in the target-specific directory first before looking =
at the=20
'generic' directory. This behavior can be overridden by passing =
additional=20
parameters to the CMake TARGET_LINK_LIBRARIES command; see the manual =
for=20
details.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Hope this helps.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>-Parag =
Chandra</FONT></DIV></BODY></HTML>

------=_NextPart_000_0094_01C2DCC3.AC1165F0--