[CMake] Adding a Visual Studio 10 specific flag
Amir Mohammadkhani-Aminabadi
amir at mohammadkhani.eu
Mon Jul 11 02:19:43 EDT 2011
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
More information about the CMake
mailing list