[Cmake] .NET Linker options for Rational tools

Bill Hoffman bill.hoffman@kitware.com
Fri, 02 May 2003 10:22:02 -0400


I just checked, and this is fixed in CVS cmake.
It should be in the next patch release for 1.6.
Jim, can you try cvs cmake and let me know if it works
for you?   Thanks.

-Bill



At 10:17 AM 5/2/2003, Robert Mathews wrote:
>Jim:
>
>I had been using this technique for the compiler flags. Didn't actually test
>it for the linker flags. I'm sorry to hear that it doesn't work.
>
>Rob.
>----- Original Message -----
>From: "Miller, James V (Research)" <millerjv@crd.ge.com>
>To: "'Robert Mathews'" <rmathews@envoyww.com>; "CMake developers (E-mail)"
><cmake@public.kitware.com>
>Sent: Friday, May 02, 2003 9:14 AM
>Subject: RE: [Cmake] .NET Linker options for Rational tools
>
>
>> I had added these flags to these variables but they did not
>> end up in any of the vcproj files (I grepped the files).
>>
>> For now, I am adding it via the gui when I need to study
>> a particular executable.
>>
>> Jim
>>
>> > -----Original Message-----
>> > From: Robert Mathews [mailto:rmathews@envoyww.com]
>> > Sent: Thursday, May 01, 2003 4:49 PM
>> > To: Miller, James V (Research); CMake developers (E-mail);
>> > Bill Hoffman
>> > Subject: Re: [Cmake] .NET Linker options for Rational tools
>> >
>> >
>> > Edit your CMakeCache.txt file, find the lines that say:
>> >
>> > CMAKE_EXE_LINKER_FLAGS
>> > CMAKE_SHARED_LINKER_FLAGS
>> >
>> > and add the "/incremental:no /fixed:no" flags.
>> >
>> > Regenerate your projects and that should do it.  This may
>> > still not appear
>> > in the .NET gui, since the flags won't be in the right part
>> > of the .vcproj
>> > file, but they should get take effect when project is built.
>> >
>> > BTW, almost all the compile flags and link flags can't be
>> > added to .NET. For
>> > example, any compile flag other than "-D" is silently tossed
>> > by CMake. You
>> > can however add those flags directly to the appropriate defnitions in
>> > CMakeCache.txt, which is ok provided that you don't mind them
>> > being global.
>> >
>> > Hope that helps.
>> >
>> > Rob.
>> > ----- Original Message -----
>> > From: "Bill Hoffman" <bill.hoffman@kitware.com>
>> > To: "Miller, James V (Research)" <millerjv@crd.ge.com>;
>> > "CMake developers
>> > (E-mail)" <cmake@public.kitware.com>
>> > Sent: Thursday, May 01, 2003 3:20 PM
>> > Subject: Re: [Cmake] .NET Linker options for Rational tools
>> >
>> >
>> > > It is on the board to be fixed, but it has not yet been done.
>> > > One way to do it, would be to use the nmake Makefiles.
>> > >
>> > > -Bill
>> > >
>> > >
>> > > At 02:34 PM 5/1/2003, Miller, James V (Research) wrote:
>> > > >Rational Purify and Quantify require the linker flags
>> > > >
>> > > >/incremental:no
>> > > >/fixed:no
>> > > >
>> > > >If I put /fixed:no on any of the CMAKE_*_LINKER_FLAGS, it
>> > get ignored by
>> > the .NET generator. I grep'ed all the *.vcproj files and /fixed:no is
>> > missing in all the files.
>> > > >
>> > > >To manually add the options in .NET, I go the properties
>> > page for the
>> > executable, and under "Linker"."Command line", I added
>> > /fixed:no to the
>> > Additional Options box.  The setting gets written in the vcproj file
>> > > >
>> > > ><VisualStudioProject>
>> > > >  <Configurations>
>> > > >     <Configuration Name="Debug">
>> > > >        <Tool Name="VCLinkerTool" AdditionalOptions="/MACHINE:I386
>> > /fixed:no"/>
>> > > >     </Configuration>
>> > > >   <Configurations>
>> > > ></VisualStudioProject>
>> > > >
>> > > >Can the .NET generator be set up so that one of the
>> > CMAKE_*_LINKER_FLAGS
>> > settings gets put in the AdditionalOptions section? Or has
>> > this been fixed
>> > already?
>> > > >
>> > > > <?xml:namespace prefix = o ns =
>> > "urn:schemas-microsoft-com:office:office" />
>> > > >
>> > > >Jim Miller
>> > > >_____________________________________
>> > > >Visualization & Computer Vision
>> > > >GE Research
>> > > >Bldg. KW, Room C218B
>> > > >P.O. Box 8, Schenectady NY 12301
>> > > >
>> > > ><mailto:millerjv@research.ge.com>millerjv@research.ge.com
>> > > >
>> > > >james.miller@research.ge.com
>> > > >(518) 387-4005, Dial Comm: 8*833-4005,
>> > > >Cell: (518) 505-7065, Fax: (518) 387-6981
>> > > >
>> > > >
>> > > >
>> > >
>> > >
>> > >
>> > > _______________________________________________
>> > > Cmake mailing list
>> > > Cmake@public.kitware.com
>> > > http://public.kitware.com/mailman/listinfo/cmake
>> > >
>> >
>>
>
>_______________________________________________
>Cmake mailing list
>Cmake@public.kitware.com
>http://public.kitware.com/mailman/listinfo/cmake