[CMake] file not generated with ADD_CUSTOM_COMMAND

Alexander Neundorf a.neundorf-work at gmx.net
Thu Jan 5 16:10:19 EST 2006


Hi, 
 
> Von: Brad King <brad.king at kitware.com> 
>  
> Alexander Neundorf wrote: 
> >>Von: "William A. Hoffman" <billlist at nycap.rr.com>  
> >>You were missing the INCLUDE_DIRECTORIES command so the depend  
> >>information did not search the correct directory for the file.  
> >  
> > But generated.h is included   
> > #include "generated.h"  
> > i.e. not with sharp braces, so the INCLUDE_DIRECTORIES() actually  
> > shouldn't matter, should it ?  
>  
> Double-quote includes look for the source files in the directory  
> containing the source, not in the current working directory of the  
> compiler.  For an out-of-source build the directory in which the header  
> is generated is not the one containing the source file.   
 
Yes, but I didn't build out-of-source, so the generated file was in the 
same directory as the source file. 
 
Bye 
Alex 
 

-- 
Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko!
Satte Provisionen für GMX Partner: http://www.gmx.net/de/go/partner


More information about the CMake mailing list