Zaak Beekman wrote:

> (I am trying to setup flymake targets for emacs which don't (re)compile
> anything, but rather run the compilers with the compile time warning flags
> and -syntax-only flags. Modules and dependency resolution in Fortran is
> the main impediment here and if I can come up with a sane solution I may
> implement it as a CMake module and share it with others.)

You might consider getting the compile commands another way. CMake can 
export the compile commands used by setting CMAKE_EXPORT_COMPILE_COMMANDS.

 http://clang.llvm.org/docs/JSONCompilationDatabase.html

It works with the Makefile and Ninja generators. I don't know if it works 
for Fortran, but you could contribute that extension to cmake if it's 
suitable. You could then process the json file and add -syntax-only where 
appropriate.

Thanks,

Steve.


-- 

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://www.cmake.org/mailman/listinfo/cmake

Reply via email to