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 -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
