Re: [PATCH] make ADD CUSTOM COMMAND() work with relative paths was: Re: [CMake] behaviour change in MakefileGenerator3

Alexander Neundorf a.neundorf-work at gmx.net
Fri Jul 8 12:08:35 EDT 2005


> Von: "Alexander Neundorf" <a.neundorf-work at gmx.net>
> 
> Hi,
> 
> the attached patch makes ADD_CUSTOM_COMMAND() work again with the makefile
> generator v3 if the source or depend files are given with relative (or no)
> paths. See the rest of this thread for details and a testcase.
> It's done similar to the change in cmConfigureCommand.cxx
> 
> Bye
> Alex

Somehow this still doesn't always work.
I see that e.g. date_object.lut.h is expanded to
/home/alex/src/kde3/kdelibs/kjs/date_object.lut.h in cmAddCustomCommand.cxx
and appended so to the depends vector.
When iterating through the events vector late in
cmLocalUnixMakefileGenerator3::WriteMakeRule() it has completely lost its
path :-/

in kdelibs/kjs/date_object.cpp there is
#include "date_object.lut.h"

Might it be possible that the C dependency scanner finds this date_object.h 
and prefers this over the one with the full path somehow ?

Bye
Alex

-- 
Weitersagen: GMX DSL-Flatrates mit Tempo-Garantie!
Ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl


More information about the CMake mailing list