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"><<a href="mailto:cseadam%2Bcmake@gmail.com">cseadam+cmake@gmail.com</a>></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't find an answer to this, so I thought I should ask.<br> <br>I have a set of source files that are compiled and built into a library. Works great.<br>
Now I want to recompile those same files with a compiler flag added into another library. Don't ask, this is how it has to be.<br>
<br>I tried doing add_library, then set_source_files_properties, then add_library but then the flag is set for both. <br> <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>
<br> <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>