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
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
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

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to