[cmake-developers] -GNinja on Windows

Peter Collingbourne peter at pcc.me.uk
Wed Jun 13 12:09:27 EDT 2012


On Wed, Jun 13, 2012 at 05:34:14PM +0200, Peter Kümmel wrote:
> On 13.06.2012 15:31, Amine Khaldi wrote:
>>
>> Please don't consider Windows as "done" until proper dependency tracking
>> is in place (it's lacking so far for rc files).
>>
>
> Please test stage. I've added rc file dependency tracking.
> It's a bit "brute force" because I feed cl.exe with the
> .rc file and collect the included files.
>
> This works as long as all #includes are done before
> cl.exe stops because of rc specific stuff.
>
> I don't know if cmake could do it better.

You could invoke cl.exe in preprocessor-only mode (/P /DRC_INVOKED),
and then supply its output to rc.exe.   This also prevents cl.exe
from uselessly trying to compile the resource file as a C program.

Thanks,
-- 
Peter



More information about the cmake-developers mailing list