[Cmake] How to turn of incremental linking

Miller, James V (CRD) millerjv at crd.ge.com
Tue Jan 8 16:26:13 EST 2002


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 



 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20020108/465e2186/attachment.html>


More information about the CMake mailing list