alamaison / emacs-cmake-project

A minor-mode integrating the CMake build process with the Emacs ecosystem.
GNU General Public License v3.0
34 stars 10 forks source link

Allow to specify additional flags for CMake when 'configuring'. #8

Closed bastianbeischer closed 9 years ago

bastianbeischer commented 9 years ago

Please check my little patch which fixes a whitespace issue in the modeline and allows to pass additional command line arguments to CMake, like:

cmake -DCMAKE_CXX_COMPILER=... -D.... SOURCE_DIR

This is achieved by adding an optional prefix argument to cmake-project-configure-project which will prompt the user for additional flags for CMake.

alamaison commented 9 years ago

Thanks for your patch. I like how you did it using the prefix arg so the existing steps don't get any longer.

I've just added cmake-project to MELPA so that I don't have to do a manual release for every fix. Hopefully it will show up there soon with your feature.