[CMake] Adding a Visual Studio 10 specific flag

Yuri Timenkov yuri at timenkov.ru
Tue Jul 12 23:36:40 EDT 2011


These flags used by CMake internally to properly handle dependencies (as I
can tell from source code). LinkLibraryDependencies is turned on when your
target depends on target added wihth include_external_msproject. As for
UseLibraryDependencyInputs - you can't set this flag with CMake.

On Mon, Jul 11, 2011 at 10:19 AM, Amir Mohammadkhani-Aminabadi <
amir at mohammadkhani.eu> wrote:

> Hi,
>
> I'd like to add the ability to set a specific MSVC10 Linker flag to cmake
> and
> wonder how to go about it. The problem as I see it is that the flag does
> not contain any command line equivalent to use.
>
> Could someone point me to an similar flag that I can look at and implement
> my code in a similiar fashion.
>
> The linker flags (actually its two while I'm at it):
> LinkLibraryDependencies
> UseLibraryDependencyInputs
>
> And they end up modifying the .vcxproj file
> <ProjectReference>
> <LinkLibraryDependencies>true<**/LinkLibraryDependencies>
> <UseLibraryDependencyInputs>**true</**UseLibraryDependencyInputs>
> </ProjectReference>
>
> How would this be managed inside the CMakeLists.txt configuration file?
> What is the best way to manage such a highly tool-chain depended flag?
>
> Yes, I do want to set these flags and yes I know why and no I do not want
> to change
> the code to not have to use them. We've found solutions that do not require
> this flag but I really, really would like to make this solution work too.
>
> cheers
> amir
>
> ______________________________**_________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/**
> opensource/opensource.html<http://www.kitware.com/opensource/opensource.html>
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/**CMake_FAQ<http://www.cmake.org/Wiki/CMake_FAQ>
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/**listinfo/cmake<http://www.cmake.org/mailman/listinfo/cmake>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110713/dd1c8390/attachment.htm>


More information about the CMake mailing list