<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
There doesn't seem to be a command line switch for this, because the
compiler/linker can't know the dependencies when called independently.
(see
<a class="moz-txt-link-freetext" href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=83916&SiteID=1">http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=83916&SiteID=1</a>).
So you can't use ADD_DEFINITIONS or similar to set this option from
CMake.<br>
<br>
But I don't really see the purpose here, because this kind of thing is
exactly what CMake does for you. If you call TARGET_LINK_LIBRARIES with
all the project names that you depend on,<br>
the needed libs are linked to the project and you should also end up
with the correct dependencies. So this is perhaps the other way round
as to specify only the dependencies and let the linking be done
automatically - should be equal work, though :-)<br>
<br>
Stefan<br>
<br>
<br>
Malhotra, Anupam schrieb:
<blockquote
cite="mid:7A581A93408E68408DB73274370D78D33F6E2D@NOI1EXCH002.sfnt.local"
type="cite">
<pre wrap="">Hi Bill
I opened the .vcproj file being generated for my project in edit
mode.Below is the section where the link library dependencies flag is
being set:
<Tool
        Name="VCLibrarianTool"
        LinkLibraryDependencies="false"
        OutputFile="E:\Nightly Build\Visual Studio 8
2005MT\core\client_library\output\MT\$(OutDir)\sntlsp_lsadmin.lib"
/>
Note that I want to set this " LinkLibraryDependencies " flag to true
using CMake. How can I achieve that?
Thanks and Regards
Anupam Malhotra
-----Original Message-----
From: Bill Hoffman [<a class="moz-txt-link-freetext" href="mailto:bill.hoffman@kitware.com">mailto:bill.hoffman@kitware.com</a>]
Sent: Friday, May 02, 2008 6:13 PM
To: Malhotra, Anupam
Cc: <a class="moz-txt-link-abbreviated" href="mailto:cmake@cmake.org">cmake@cmake.org</a>
Subject: Re: [CMake] Setting "Link Library Dependencies" Flag in VS 2005
Malhotra, Anupam wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi
I have created a .sln (for VS 2005) using Cmake.In the sln, Project
Properties->Configuration Properties->Librarian->Link Library
Dependencies flag is by default set to NO. I want to set this flag
</pre>
</blockquote>
<pre wrap=""><!---->value
</pre>
<blockquote type="cite">
<pre wrap="">to YES using Cmake. How can this be achieved? I require this flag to
</pre>
</blockquote>
<pre wrap=""><!---->be
</pre>
<blockquote type="cite">
<pre wrap="">YES so that the library outputs from project dependencies are
automatically linked in. Any help would be greatly appreciated. Thanks
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
<blockquote type="cite">
<pre wrap="">in Advance
</pre>
</blockquote>
<pre wrap=""><!---->Can you figure out what the command line flag is for this? Just turn it
on by hand and go to command line and see what changed. You should be
able to use that command line flag.
-Bill
The information contained in this electronic mail transmission
may be privileged and confidential, and therefore, protected
from disclosure. If you have received this communication in
error, please notify us immediately by replying to this
message and deleting it from your computer without copying
or disclosing it.
_______________________________________________
CMake mailing list
<a class="moz-txt-link-abbreviated" href="mailto:CMake@cmake.org">CMake@cmake.org</a>
<a class="moz-txt-link-freetext" href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a>
</pre>
</blockquote>
<br>
</body>
</html>