[CMake] Linking to a library with a "-"
Brad King
brad.king at kitware.com
Wed Apr 15 09:12:26 EDT 2009
David Doria wrote:
> When I add a line like this:
>
> TARGET_LINK_LIBRARIES(MyProject boost_program_options-mt)
>
> in my link.txt file, -lboost_program_options gets produced instead
> (without the "-mt"), and therefore the library cannot be found. I've
> been creating a symlink with the name without the -mt and that works,
> but it seems silly to have to do that. Is there a way to link to a
> library name which contains a "-"?
I cannot reproduce this. I get "-lboost_program_options-mt".
What version of CMake?
What platform?
What generator?
-Brad
More information about the CMake
mailing list