[cmake-developers] Referencing all sources in compile command

Saleem Abdulrasool compnerd at compnerd.org
Sun Dec 30 16:09:23 EST 2018


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake-developers/attachments/20181230/3a7dda37/attachment.html>


More information about the cmake-developers mailing list