[cmake-developers] Referencing all sources in compile command

Kyle Edwards kyle.edwards at kitware.com
Mon Dec 31 10:14:18 EST 2018


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 ``
> 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/op
> ensource/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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake-developers/attachments/20181231/3dab7a31/attachment.html>


More information about the cmake-developers mailing list