[Cmake] MSVC Ignore libraries

Parag Chandra pchandra at radonc . unc . edu
Thu, 20 Mar 2003 10:13:42 -0500


This is a multi-part message in MIME format.

------=_NextPart_000_0020_01C2EEC9.62200CE0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi Cody,

The way I've done this in the past is to modify the =
EXEHeader.dsptemplate file that CMake uses (this is found in the =
Templates subdir of your CMake installation). I've had to do this for =
the case of linking release libraries into a debug build. I simply went =
to the section for the "Win32 Debug" configuration and manually appended =
"/NODEFAULTLIB:msvcrt.lib" to the ADD LINK32 line. Of course, this will =
cause every project created with CMake to ignore this library, which may =
not be what you want. So I'd like to see a CMake feature that would =
allow this, because it's not always possible to avoid mixing release =
libraries with debug builds.

Best regards,
-Parag Chandra
------=_NextPart_000_0020_01C2EEC9.62200CE0
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>Hi Cody,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>The way I've done this in the past is =
to modify the=20
EXEHeader.dsptemplate file that CMake uses (this is found in the =
Templates=20
subdir of your CMake installation). I've had to do this for the case of =
linking=20
release libraries into a debug build.&nbsp;I simply went to the section =
for the=20
"Win32 Debug" configuration and manually appended =
"/NODEFAULTLIB:msvcrt.lib" to=20
the ADD LINK32 line. Of course, this will cause every project created =
with CMake=20
to ignore this library, which may not be what you want. So I'd like =
to&nbsp;see=20
a CMake feature that would allow this, because it's not always possible =
to avoid=20
mixing release libraries with debug builds.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Best regards,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>-Parag =
Chandra</FONT></DIV></BODY></HTML>

------=_NextPart_000_0020_01C2EEC9.62200CE0--