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

there is wrong to process output from new version of cmake --help #17

Open
xie-jirong opened this issue Jan 1, 2021 · 0 comments
Open

Comments

@xie-jirong
Copy link

with new version cmake such as 3.16, the output of cmake --help is different to that of the old version.
And consequently, the function cmake-project--available-generators in cmake-project.el could not
match the output to the regex.

There are two spots needed to modify. First, the character line to start generator.
Secondly, there is some generator occupying two line, and therefore need add \n? just after the name of make tool.

Thanks a lot for your works, and happy new year!

$ diff cmake-project.el~ cmake-project.el
183c183
<                  "The following generators are available on this platform:\n"
---
>                  "The following generators are available on this platform.*\n" ;; for version with "... platform (* marks default):"
189c189
<               "\\s-+\\([^=\n]+?\\)\\s-*=[^\n]+?\n\\([^\\']*\\)\\'" gens-chunk)
---
>               "\\s-+\\([^=\n]+?\\)\n?\\s-*=[^\n]+?\n\\([^\\']*\\)\\'" gens-chunk)
sunziping2016 added a commit to sunziping2016/emacs-cmake-project that referenced this issue Mar 16, 2022
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