[Cmake] How to turn of incremental linking
Miller, James V (CRD)
millerjv at crd . ge . com
Tue, 8 Jan 2002 16:26:13 -0500
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C1988B.199229D0
Content-Type: text/plain
Thanks for adding the CMAKE_EXTRA_LINK_FLAGS. It is what I needed.
It looks as though I need to set "/incremental:no /pdb:none" in order to get Insight to build Debug
under Intel C++ 5.0
-----Original Message-----
From: Bill Hoffman [mailto:bill . hoffman at kitware . com]
Sent: Tuesday, January 08, 2002 1:33 PM
To: Miller, James V (CRD)
Subject: RE: [Cmake] How to turn of incremental linking
Until about 5 minutes ago, you could not.
If you update cmake, and add the option to this flag:
CMAKE_EXTRA_LINK_FLAGS.
It should fix the problem.
At 01:04 PM 1/8/2002 -0500, you wrote:
The default is "ON". I think I need to add /INCREMENTAL:NO to the link flags to turn off incremental
linking. Unfortunately,
I cannot see a way in CMake to set linker options. I found the CXX options in the CMakeCache.txt and
putting /INCREMENTAL:NO there puts in the compile line but not on the link line.
I think it needs to go in the DSP as
# ADD LINK32 /INCREMENTAL:NO
Can I do this in CMake?
-----Original Message-----
From: Bill Hoffman [ mailto:bill . hoffman at kitware . com <mailto:bill . hoffman at kitware . com> ]
Sent: Tuesday, January 08, 2002 12:51 PM
To: Miller, James V (CRD)
Subject: Re: [Cmake] How to turn of incremental linking
It may just be a default. I don't see where we set it.
You should do a diff on the dsp file before and after you disable it with
the GUI and see what has to change.
-Bill
At 10:59 AM 1/8/2002 -0500, you wrote:
I am trying to build a project with the Intel C++ compiler with debug information. Occasionally, the
link will fail with an internal error. When it fails, I can clean the particular project (just the
exe, the supporting libraries are not rebuilt) and reproduce the error. If I toggle "incremental
linking" in DevStudio, the link will succeed. So the debug information for the exe is confusing the
linker when incremental linking is used.
How can I specify that incremental linking should not be used for a particular build? Is this
something that I can set in the CMakeCache?
Jim Miller
_____________________________________
Visualization & Computer Vision
GE Corporate Research & Development
Bldg. KW, Room C218B
P.O. Box 8, Schenectady NY 12301
millerjv at crd . ge . com < mailto:millerjv at crd . ge . com <mailto:millerjv at crd . ge . com> >
(518) 387-4005, Dial Comm: 8*833-4005,
Cell: (518) 505-7065, Fax: (518) 387-6981
------_=_NextPart_001_01C1988B.199229D0
Content-Type: text/html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META content="MSHTML 5.50.4807.2300" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=195152421-08012002><FONT color=#0000ff size=2>Thanks for adding
the CMAKE_EXTRA_LINK_FLAGS. It is what I needed.</FONT></SPAN></DIV>
<DIV><SPAN class=195152421-08012002><FONT color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=195152421-08012002><FONT color=#0000ff size=2>It looks as
though I need to set "/incremental:no /pdb:none" in order to get Insight to
build Debug under Intel C++ 5.0</FONT></SPAN></DIV>
<DIV><SPAN class=195152421-08012002><FONT color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=195152421-08012002></SPAN> </DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Bill Hoffman
[mailto:bill . hoffman at kitware . com]<BR><B>Sent:</B> Tuesday, January 08, 2002
1:33 PM<BR><B>To:</B> Miller, James V (CRD)<BR><B>Subject:</B> RE: [Cmake] How
to turn of incremental linking<BR><BR></FONT></DIV>Until about 5 minutes ago,
you could not.<BR><BR>If you update cmake, and add the option to this
flag:<BR>CMAKE_EXTRA_LINK_FLAGS.<BR><BR>It should fix the
problem.<BR><BR><BR>At 01:04 PM 1/8/2002 -0500, you wrote:<BR>
<BLOCKQUOTE class=cite cite type="cite"><FONT color=#0000ff size=2>The
default is "ON". I think I need to add /INCREMENTAL:NO to the link
flags to turn off incremental linking. Unfortunately, </FONT><BR><FONT
color=#0000ff size=2>I cannot see a way in CMake to set linker
options. I found the CXX options in the CMakeCache.txt and putting
/INCREMENTAL:NO there puts in the compile line but not on the link
line.</FONT><BR> <BR><FONT color=#0000ff size=2>I think it needs to go
in the DSP as </FONT><BR> <BR><FONT color=#0000ff size=2># ADD LINK32
/INCREMENTAL:NO</FONT><BR> <BR><FONT color=#0000ff size=2>Can I do this
in CMake?</FONT>
<DL><FONT face=tahoma size=2>
<DD>-----Original Message-----
<DD>From:</B> Bill Hoffman [<A href="mailto:bill . hoffman at kitware . com"
eudora="autourl">mailto:bill . hoffman at kitware . com</A>]
<DD>Sent:</B> Tuesday, January 08, 2002 12:51 PM
<DD>To:</B> Miller, James V (CRD)
<DD>Subject:</B> Re: [Cmake] How to turn of incremental
linking<BR><BR></FONT>
<DD>It may just be a default. I don't see where we set it.
<DD>You should do a diff on the dsp file before and after you disable it
with
<DD>the GUI and see what has to change.<BR><BR>
<DD>-Bill<BR><BR><BR><BR>
<DD>At 10:59 AM 1/8/2002 -0500, you wrote:
<BLOCKQUOTE class=cite cite type="cite"><FONT size=2>
<DD>I am trying to build a project with the Intel C++ compiler with
debug information. Occasionally, the link will fail with an
internal error. When it fails, I can clean the particular project
(just the exe, the supporting libraries are not rebuilt) and reproduce
the error. If I toggle "incremental linking" in DevStudio, the
link will succeed. So the debug information for the exe is confusing the
linker when incremental linking is used.</FONT>
<DD><FONT size=2>
<DD>How can I specify that incremental linking should not be used for a
particular build? Is this something that I can set in the
CMakeCache?</FONT><BR><BR><FONT face="Comic Sans MS" color=#000080>
<DD>Jim Miller</B></FONT> <FONT face=arial color=#ff0000 size=2>
<DD>_____________________________________</I></B></FONT><FONT face=arial
size=1>
<DD>Visualization & Computer Vision
<DD>GE Corporate Research & Development
<DD>Bldg. KW, Room C218B
<DD>P.O. Box 8, Schenectady NY 12301<BR><BR></FONT><FONT face=arial
color=#0000ff size=1>
<DD>millerjv at crd . ge . com <<A
href="mailto:millerjv at crd . ge . com">mailto:millerjv at crd . ge . com</A>></U></I></FONT><FONT
face=arial size=1>
<DD>(518) 387-4005, Dial Comm: 8*833-4005, </I></FONT><FONT face=arial
size=1>
<DD>Cell: (518) 505-7065, Fax: (518) 387-6981</I></FONT> <BR><BR>
<DD> </DD></BLOCKQUOTE></DD></DL></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>
------_=_NextPart_001_01C1988B.199229D0--