Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Cmake new preset feature #207

Closed
jlagneau opened this issue Jan 8, 2021 · 1 comment
Closed

Support Cmake new preset feature #207

jlagneau opened this issue Jan 8, 2021 · 1 comment

Comments

@jlagneau
Copy link

jlagneau commented Jan 8, 2021

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")))))
@jlagneau
Copy link
Author

jlagneau commented Jan 8, 2021

Duplicate of #206

@jlagneau jlagneau closed this as completed Jan 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant