<html><head></head><body><div>On Sun, 2018-12-30 at 13:09 -0800, Saleem Abdulrasool wrote:</div><blockquote type="cite"><div dir="ltr"><div dir="ltr">Hi,<div><br></div><div>I was looking at supporting Swift as a language in CMake.  I know that CMake has some preliminary support that assumes that you are building on macOS with Xcode.  I am trying to support building swift libraries and executables on Linux and Windows.</div><div><br></div><div>There is some preliminary work on this that I have put up on GitHub [1].  One place that I am hitting a roadblock in is the need to reference all the target sources in the compile rule for a single object.  AFAICT, there is no placeholder that will expand to the target sources.  Would it be acceptable to add a `<TARGET_SOURCES>` place holder?  Or is there another approach that would be better?</div><div><br></div><div>Thanks.</div><div><br></div><div>[1] <a href="https://github.com/compnerd/cmake-swift">https://github.com/compnerd/cmake-swift</a><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Saleem Abdulrasool<br>compnerd (at) compnerd (dot) org</div></div></div></div>
<pre>-- 

Powered by <a href="http://www.kitware.com">www.kitware.com</a>

Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a>

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: <a href="http://cmake.org/cmake/help/support.html">http://cmake.org/cmake/help/support.html</a>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html">http://cmake.org/cmake/help/consulting.html</a>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html">http://cmake.org/cmake/help/training.html</a>

Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>

Follow this link to subscribe/unsubscribe:
<a href="https://cmake.org/mailman/listinfo/cmake-developers
">https://cmake.org/mailman/listinfo/cmake-developers
</a></pre></blockquote><div><br></div><div>Saleem,</div><div><br></div><div>Not sure if this will help, but have you taken a look at the $<TARGET_OBJECTS:...> generator expression?</div><div><br></div><div><a href="https://cmake.org/cmake/help/v3.13/manual/cmake-generator-expressions.7.html#output-expressions">https://cmake.org/cmake/help/v3.13/manual/cmake-generator-expressions.7.html#output-expressions</a></div><div><br></div><div>Kyle</div></body></html>