[CMake] Linking to a library with a "-"
David Doria
daviddoria at gmail.com
Wed Apr 15 08:42:41 EDT 2009
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
"-"?
Thanks,
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090415/5552b74b/attachment.htm>
More information about the CMake
mailing list