[cmake-developers] ninja bug on windows

Bill Hoffman bill.hoffman at kitware.com
Wed Mar 14 10:52:22 EDT 2012


On 3/13/2012 10:39 PM, Peter Collingbourne wrote:
> Maybe another time we can think about ways to improve PCH support,
> but for now I guess we can add an OR Ninja to this test and add
> OBJECT_OUTPUTS support to the Ninja generator.
I tried making that blog active for ninja and a I get a new error:


122: ninja: ERROR: 'PCH\foo_precompiled.pch', needed by 
'CMakeFiles\foo.dir\foo1.c.obj', missing and no known rule to make it


So, Ninja is not handling OBJECT_OUTPUTS and OBJECT_DEPENDS correctly?


   SET_SOURCE_FILES_PROPERTIES(foo_precompile.c PROPERTIES
     OBJECT_OUTPUTS "${PCH_DIR}/foo_precompiled.pch")

   # These source files use the precompiled header.
   SET_SOURCE_FILES_PROPERTIES(${foo_SRCS} PROPERTIES
     OBJECT_DEPENDS "${PCH_DIR}/foo_precompiled.pch")

-Bill



More information about the cmake-developers mailing list