Adam,<br><br>How about two configurations for your library: cfg_1, cfg_2.<br>cfg_1 - is configuration without flag.<br>cfg_2 - is configuration with flag.<br><br><div class="gmail_quote">2009/1/19 Adam Weiss <span dir="ltr">&lt;<a href="mailto:cseadam%2Bcmake@gmail.com">cseadam+cmake@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I couldn&#39;t find an answer to this, so I thought I should ask.<br>&nbsp;<br>I have a set of source files that are compiled and built into a library.&nbsp; Works great.<br>
Now I want to recompile those same files with a compiler flag added into another library.&nbsp; Don&#39;t ask, this is how it has to be.<br>
&nbsp;<br>I tried doing add_library, then set_source_files_properties, then add_library but then the flag is set for both.&nbsp; <br>&nbsp;<br>I would like to keep it all inside of one CMakeLists.txt file, but I might be able to work it out another way.<br>

&nbsp;<br>&nbsp;<br>Thanks for any help,<br><font color="#888888">Adam
</font><br>_______________________________________________<br>
CMake mailing list<br>
<a href="mailto:CMake@cmake.org">CMake@cmake.org</a><br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br>