[Cmake] ADD_DEFINITIONS working for .NET?
Robert Mathews
rmathews@envoyww.com
Thu, 1 May 2003 15:49:43 -0400
This is a multi-part message in MIME format.
------=_NextPart_000_00C2_01C30FF9.489DF290
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Never mind.=20
This happens if you put the ADD_DEFINITIONS after the SUBDIRs command in =
your root makefile. CMake recurs down the SUBDIRs projects before it =
does the ADD_DEFINITIONS command, and hence it appears like it has no =
effect. This is what CMake is supposed to do, of course.
Rob.=20
----- Original Message -----=20
From: Robert Mathews=20
To: cmake@public.kitware.com=20
Sent: Thursday, May 01, 2003 2:56 PM
Subject: [Cmake] ADD_DEFINITIONS working for .NET?
Ok, I admit this is unlikely, but is there any trick with the =
ADD_DEFINITIONS command for a .NET (Version 7.0) target?=20
I've added something like this to my CMakeLists.txt file, and the =
definitions don't seem to come out the other end ...
ADD_DEFINITIONS(/DUNICODE /DWIN32 /Zm400 /D_WIN32_WINNT=3D0x501 )
Thanks in advance,
Rob.=20
Visual Studio .NET, Version 7.0, target C/C++ code.=20
------=_NextPart_000_00C2_01C30FF9.489DF290
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>Never mind. </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>This happens if you put the =
ADD_DEFINITIONS after=20
the SUBDIRs command in your root makefile. CMake recurs down the SUBDIRs =
projects before it does the ADD_DEFINITIONS command, and hence it =
appears like=20
it has no effect. This is what CMake is supposed to do, of =
course.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Rob. </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV=20
style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
<A title=3Drmathews@envoyww.com =
href=3D"mailto:rmathews@envoyww.com">Robert=20
Mathews</A> </DIV>
<DIV style=3D"FONT: 10pt arial"><B>To:</B> <A =
title=3Dcmake@public.kitware.com=20
href=3D"mailto:cmake@public.kitware.com">cmake@public.kitware.com</A> =
</DIV>
<DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Thursday, May 01, 2003 =
2:56=20
PM</DIV>
<DIV style=3D"FONT: 10pt arial"><B>Subject:</B> [Cmake] =
ADD_DEFINITIONS working=20
for .NET?</DIV>
<DIV><BR></DIV>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2>Ok, I admit this is unlikely, but is =
there any=20
trick with the ADD_DEFINITIONS command for a .NET (Version 7.0) =
target?=20
</FONT></DIV>
<DIV> </DIV>
<DIV>I've added something like this to my CMakeLists.txt file, and the =
definitions don't seem to come out the other end ...</DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>ADD_DEFINITIONS(/DUNICODE =
/DWIN32 /Zm400=20
/D_WIN32_WINNT=3D0x501 )</FONT></DIV></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks in advance,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Rob. </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Visual Studio .NET, Version 7.0, =
target C/C++=20
code. </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial =
size=3D2></FONT> </DIV></BLOCKQUOTE></BODY></HTML>
------=_NextPart_000_00C2_01C30FF9.489DF290--