[CMake] Problem with ADD_CUSTOM_COMMAND and compiler

Alexander Neundorf a.neundorf-work at gmx.net
Fri Oct 17 13:12:20 EDT 2008


On Friday 17 October 2008, s.bedouet at voila.fr wrote:
> Hi,
> I try to generate preprocessed files with gcc (gcc -E) and
> ADD_CUSTOM_COMMAND. I use INCLUDE_DIRECTORIES in order to specify where the
> include files are but this has not effect and so gcc generates an error :

CMake generates rules to create the preprocessed files, enter "make help" and  
there should be rules for <file>.i 
You can then call these manually.
Or do you actually need these files in your build ?

Alex


More information about the CMake mailing list