[CMake] two more problems with dependencies
Alexander Neundorf
a.neundorf-work at gmx.net
Thu Jan 5 12:13:18 EST 2006
Hi,
I found two more problems with dependencies:
Problem 1) if a file is included like this:
#include "/some/absolute/path/file.h"
cmDependsC.cxx doesn't notice that this is an absolute path and prepends
the current directory nevertheless
problem 2) let's say main.cpp includes generated.h, and generated.h
depends on "blah.h", specified via ADD_CUSTOM_COMMAND(... DEPENDS blah.h)
the rule for generated.h will be:
generated.h: blah.h
...do something...
But the depend.make will only list
main.cpp: generated.h
but not
main.cpp: blah.h
which it should since generated.h depends on it (not via include, but via
DEPENDS).
These two problem can be reproduced with the attached testcase, files are
named as in this example: main.cpp doesn't depend on blah.h (see
depend.make) and the full path of the "" include is generated wrong (see
includecache.CXX).
Bye
Alex
--
10 GB Mailbox, 100 FreeSMS/Monat http://www.gmx.net/de/go/topmail
+++ GMX - die erste Adresse für Mail, Message, More +++
More information about the CMake
mailing list