[rust-dev] Using CMake with Rust
douglas.linder at gmail.com
Sat Jan 4 22:13:28 PST 2014
For what it's worth, your rust cmake example currently seems to work with
ninja, which is brilliant. My vote definitely goes for your current
approach; I tried to implement a C# module for cmake some time ago using
the other method, and ran into similar sorts of issues (specifically with
various variables only being supported by Makefile builds in cmake).
On Thu, Jan 2, 2014 at 1:32 PM, SiegeLord <slabode at aim.com> wrote:
> On 01/02/2014 12:05 AM, György Andrasek wrote:
>> The proper way to support a language in CMake is outlined in
> I was guided away from that method by this email: http://www.cmake.org/
> pipermail/cmake/2011-March/043444.html . My approach is amenable to
> generating files for alternative build systems, like ninja. If you are
> aware that that email is incorrect, I'm glad to be corrected. Independently
> of that email, I have looked into doing it that way, but I found that it
> just did not mesh with the Rust compilation model, and I saw no clear way
> to using the information given by 'rustc --dep-info' to inform the build
> system. Additionally, my macros allow an easy way of doing documentation
> generation, which that method doesn't clearly allow.
> I'll be glad to be corrected on all those points though.
> Rust-dev mailing list
> Rust-dev at mozilla.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Rust-dev