<div dir="ltr"><div>Hi Kyle,</div><div><br></div><div>Thanks, I did look at generator expressions. However, they are expanded outside the scope of the placeholders and will be emitted into the generated build file, which makes them unusable in this scenario.</div><div dir="ltr"><br></div><div dir="ltr">On Mon, Dec 31, 2018 at 7:14 AM Kyle Edwards <<a href="mailto:kyle.edwards@kitware.com">kyle.edwards@kitware.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div><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" target="_blank">https://github.com/compnerd/cmake-swift</a><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail-m_3127814881542465090gmail_signature">Saleem Abdulrasool<br>compnerd (at) compnerd (dot) org</div></div></div></div>
<pre>--
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a>
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>
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" target="_blank">http://cmake.org/cmake/help/support.html</a>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" target="_blank">http://cmake.org/cmake/help/consulting.html</a>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" target="_blank">http://cmake.org/cmake/help/training.html</a>
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>
Follow this link to subscribe/unsubscribe:
<a href="https://cmake.org/mailman/listinfo/cmake-developers" target="_blank">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" target="_blank">https://cmake.org/cmake/help/v3.13/manual/cmake-generator-expressions.7.html#output-expressions</a></div><div><br></div><div>Kyle</div></div></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Saleem Abdulrasool<br>compnerd (at) compnerd (dot) org</div></div>