[CMake] FYI - From Ninja-build mailing list - Fwd: Proposal: restat rules
Malfettone, Kris
Kris.Malfettone at sig.com
Fri Sep 9 10:55:00 EDT 2011
Peter,
I am very interested in the ninja generator and gave it a try for one of my very large projects. Unfortunately, I have approximately 100 targets all with the same output name(simple) but in CMake I give them all unique target names(dot separated name built from their place in the directory tree). This works fine for Makefiles however the ninja generator seems to be adding:
# Shortcut target for the output name.
build simple: phony MD/MDF/Parsers/BX/BLS/v1_1/utils/simple/simple
# Shortcut target for the target name.
build BX.BLS.v1_1.simple: phony simple
Which then causes the following from ninja:
ninja: WARNING: multiple rules generate simple. build will not be correct; continuing anyway
Is there a way to disable these shortcut targets? Even changing my target names to a different format is a possibility if that is necessary.
-Kris
-----Original Message-----
From: cmake-bounces at cmake.org [mailto:cmake-bounces at cmake.org] On Behalf Of Peter Collingbourne
Sent: Thursday, September 08, 2011 2:55 PM
To: Jean-Christophe Fillion-Robin
Cc: CMake ML
Subject: Re: [CMake] FYI - From Ninja-build mailing list - Fwd: Proposal: restat rules
On Wed, Sep 07, 2011 at 11:04:42PM -0400, Jean-Christophe Fillion-Robin wrote:
> ---------- Forwarded message ----------
> From: Peter Collingbourne <peter at pcc.me.uk>
> Date: Wed, Sep 7, 2011 at 9:17 PM
> Subject: Proposal: restat rules
> To: ninja-build at googlegroups.com
FWIW, the Ninja generator I have been working on is based on work by Nicolas Despres, and has been successfully used to compile a number of large open source projects, including CMake itself, LLVM/Clang, OpenCV and Bullet Physics.
I am planning to submit the Ninja generator as a patch to CMake upstream once it has been put through more exhaustive testing and certain known issues have been resolved (my post to ninja-build being one of them).
Anyone who is interested in trying the Ninja generator with their own projects is welcome to clone my repository at:
https://github.com/pcc/CMake/tree/ninja-generator
and to report any issues encountered. Note that the generator is currently only known to work on Linux. To select the Ninja generator you can pass the option "-G Ninja" on the cmake command line.
Thanks,
--
Peter
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake
________________________________
IMPORTANT: The information contained in this email and/or its attachments is confidential. If you are not the intended recipient, please notify the sender immediately by reply and immediately delete this message and all its attachments. Any review, use, reproduction, disclosure or dissemination of this message or any attachment by an unintended recipient is strictly prohibited. Neither this message nor any attachment is intended as or should be construed as an offer, solicitation or recommendation to buy or sell any security or other financial instrument. Neither the sender, his or her employer nor any of their respective affiliates makes any warranties as to the completeness or accuracy of any of the information contained herein or that this message or any of its attachments is free of viruses.
More information about the CMake
mailing list