Hi

I'm trying to create a rule which will only run the C++ preprocessor on a
file, without compiling it. I know about the make file.i rule, but if
file.cpp is not a dependency of some target it does not get generated.
Setting header_file property doesn't work either. Adding a custom rule
works, but I have to manually assemble the include paths, defines, etc...
I found the CMAKE_CXX_CREATE_PREPROCESSED_SOURCE rule in the modules dir,
but I guess it can't be used directly in a cmake file. So, is there a way to
generate a *.i target without the cpp file being included in any target?

Nikolay
_______________________________________________
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

Reply via email to