<div class="gmail_quote">On Wed, Oct 7, 2009 at 11:45 AM, Aleksandr Udovenko <span dir="ltr"><<a href="mailto:udovenkoav@gmail.com">udovenkoav@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I try cmake 2.6, 2.8 for microsoft visual studio 2005,2008.<br>
creating library:<br>
<br>
add_library(my_lib STATIC ${CPP_FILES})<br>
<br>
I try send some linker options by set<br>
<br>
set_target_properties(my_lib PROPERTIES LINK_FLAGS "some_opt")<br>
<br>
or<br>
<br>
set_target_properties(my_lib PROPERTIES LINK_FLAGS_<my target> "some_opt")<br>
<br>
<br>
it's ignored, as i understand from source code of vc7generator - it<br>
ignored extended and unknown option for static library but it works<br>
for exe and shared.<br>
<br>
How i can send my option to linker for static library?<br></blockquote><div><br>You might be able to use this:<br>
<a href="http://www.cmake.org/cmake/help/cmake-2-8-docs.html#prop_tgt:STATIC_LIBRARY_FLAGS">http://www.cmake.org/cmake/help/cmake-2-8-docs.html#prop_tgt:STATIC_LIBRARY_FLAGS</a> <br clear="all"></div></div><br>-- <br>Philip Lowman<br>