[CMake] Can I make the dependency scanner only look in certain include directories?
Brad King
brad.king at kitware.com
Thu Oct 4 10:12:33 EDT 2012
On 10/03/2012 07:57 PM, Dan Furlani wrote:
> #ifndef CODEGEN
> #include "GeneratedFile.h"
> #endif
As you point out CMake does not actually preprocess the sources.
You can hide includes from it like this:
#ifndef CODEGEN
# define CODEGEN_GeneratedFile_h "GeneratedFile.h"
# include CODEGEN_GeneratedFile_h
# undef CODEGEN_GeneratedFile_h
#endif
-Brad
More information about the CMake
mailing list