[cmake-developers] Ninja generator on Windows

Nicolas Desprès nicolas.despres at gmail.com
Thu Feb 2 10:41:42 EST 2012


On Thu, Feb 2, 2012 at 4:34 PM, Bill Hoffman <bill.hoffman at kitware.com> wrote:
> On 2/2/2012 8:30 AM, Brad King wrote:
>>
>> On 2/1/2012 10:23 PM, Bill Hoffman wrote:
>>>
>>> On 2/1/2012 4:19 PM, Peter Kümmel wrote:
>>>>
>>>> We can't use cmd. Maybe ninja could be fixed.
>>>
>>>
>>> If not, you could come up with something that uses CMake scripts.
>>>
>>> cmake -E foo.cmake
>>> ----foo.cmake----
>>> execute_process(....)
>>>
>>> Not ideal, but until ninja figures it out, cmake can become the shell
>>> for ninja.
>>
>>
>> That won't handle the && problem currently facing Ninja.
>>
>
> Why not?   CMake does not handle && in custom commands either.  It is
> expected that custom commands are run one by one.  So, a CMake Ninja
> generator should be able to handle all cases, it might have to create some
> CMake scripts to do it, but I don't see why we would need anything more from
> Ninja than the ability to run a single command.
>

When you use scripts or file like link.txt you lose the power of the
special $in and $out variables or variable in general that are
expanded in the rule.

-- 
Nicolas Desprès



More information about the cmake-developers mailing list