[Cmake] cmake.depends - too many rules for target?

John Biddiscombe jbiddiscombe at skippingmouse.co.uk
Tue Jul 2 13:24:45 EDT 2002


> Error cmake.check_depends 1162: Too many rules for target
> 'd:\Builder\Vtk\Common\vtkAbstractMapper.h'

CMake is case sensitive, you have to go through all your files and make sure
that
#include "vtkSomeStuff.h"
and
#include "vtkSomestuff.h"

don't occur anywhere. If they do, cmake generates rules which cause
duplicates and the error you mentioned.

You must also make sure all cmakelists.txt files are consistent with
backslashes and dashes in filenames or the same trouble can occur. Rules for

d:\stuff\vtkMyClass.h
and
d:\stuff/vtkMyClass.h

can cause trouble if your cmakelsits files have generated paths with
ionconsistent slashes.

I'd bet my arse that you've got some

d:\Builder\Vtk
and some
d:\Builder\VTK
and some
d:\Builder\vtk

all mixed together.

JB





More information about the CMake mailing list