Have you tried building your project using a different generator to check if it&#39;s a VS-specific problem?. I&#39;ve set compile flags on a per-source basis using  various generators under Linux and had no problem. Do you have access to a Linux box, or is your project Windows-specific?<br>
<br>Cheers,<br><br>Adolfo<br><br><br><div class="gmail_quote">On Mon, Apr 13, 2009 at 12:54 AM, Yevgen Muntyan <span dir="ltr">&lt;<a href="mailto:ymuntyan@gmail.com">ymuntyan@gmail.com</a>&gt;</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;">
Andreas Pakulat wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 07.04.09 20:29:49, Yevgen Muntyan wrote:<br>
  <br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
I want to convert an autotools project to cmake. But, I don&#39;t know how  to solve the problem of the<br>
convenience libraries. The issue is: the project builds a shared library  of bunch of libtool convenience<br>
libraries. Each convenience library uses different compilation flags  (which is very important). So I can&#39;t<br>
simply take all sources I got and stuff them into a shared library with  add_library().<br>
    <br>
</blockquote>
<br>
Sure you can. You can set compile flags on a per source file basis with<br>
set_source_file_properties. If you have a bunch of files that get the same<br>
flags, put them into a variable, iterate over them and set the flags on<br>
each that way.<br>
  <br>
</blockquote>
In fact, it doesn&#39;t even work. Generated visual studio project ignores COMPILE_FLAGS set on source files,<br>
even though it seems to be okay with COMPILE_DEFINITIONS. This is strange because visual studio itself<br>
does support compile flags set per-file. So I am back to my original question. Anybody knows how to build<br>
a shared library of separate cmake targets?<br>
<br>
Thanks!<br>
Yevgen<br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Adolfo Rodríguez Tsouroukdissian<br><br>Robotics engineer<br>PAL ROBOTICS S.L<br><a href="http://www.pal-robotics.com">http://www.pal-robotics.com</a><br>Tel. +34.93.414.53.47<br>
Fax.+34.93.209.11.09<br>