Hi, is there a way in the cmakelists syntax to generate a build script (make/ninja/...) that will invoke the C/C++ compiler with an '-include file' or '-include macros' option? >From the GNU cpp man page:
-include file Process file as if "#include "file"" appeared as the first line of the primary source file. ... -imacros file Exactly like -include, except that ... I do not really believe these options make any sense when using cmake (they seem to be GNU cc specific), but I am the author of an eclipse plugin that integrates cmake with eclipse CDT and have to parse the build output in order to feed the CDT indexer with macro definitions and include paths. I am asking, because I want to avoid writing parsers that detect the above compiler options. Are there any script generators that produce compiler invocation with the above otions? Or tool chains? TIA, Martin -- Quidquid latine dictum sit, altum viditur. -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake