Support Cmake new preset feature
jlagneau opened this issue · 1 comments
jlagneau commented
CMake now support presets since 3.19 to facilitate reproducible out-of-source builds.
https://cmake.org/cmake/help/v3.19/manual/cmake-presets.7.html
It would be awesome if we could just use that instead of having to setup a .dir-locals.el file every time.
Also, currently, I can't run my presets with my .dir-locals.el (it still runs with the GNU Makefile generator in /tmp despite my preset working correctly in the shell)
;;; Directory Local Variables
;;; For more information see (info "(emacs) Directory Variables")
((c++-mode . ((cmake-ide-project-dir . "~/Works/hinge")
(cmake-ide-cmake-args . ("--preset=Debug")))))