Hi Kyle,

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.

On Mon, Dec 31, 2018 at 7:14 AM Kyle Edwards <kyle.edwa...@kitware.com>
wrote:

> On Sun, 2018-12-30 at 13:09 -0800, Saleem Abdulrasool wrote:
>
> Hi,
>
> 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.
>
> 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?
>
> Thanks.
>
> [1] https://github.com/compnerd/cmake-swift
>
> --
> Saleem Abdulrasool
> compnerd (at) compnerd (dot) org
>
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at: 
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more 
> information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at 
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to 
> subscribe/unsubscribe:https://cmake.org/mailman/listinfo/cmake-developers
>
>
> Saleem,
>
> Not sure if this will help, but have you taken a look at the
> $<TARGET_OBJECTS:...> generator expression?
>
>
> https://cmake.org/cmake/help/v3.13/manual/cmake-generator-expressions.7.html#output-expressions
>
> Kyle
>


-- 
Saleem Abdulrasool
compnerd (at) compnerd (dot) org
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

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

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake-developers

Reply via email to