Skip to content

cmake: add shell completion support #16833

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

Closed
wants to merge 9 commits into from

Conversation

vszakats
Copy link
Member

@vszakats vszakats commented Mar 26, 2025

Add the last (*) missing bit for feature parity with autotools.

Also test in CI. Add a new cmake install step to GHA/macos.

(*) AFAIK. Let us know if there's something else missing.

cm: fix install dir fallbacks

cm: fix long lines
@github-actions github-actions bot added the CI Continuous Integration label Mar 26, 2025
```
CMake Error at bld/scripts/cmake_install.cmake:46 (file):
  file INSTALL cannot find "/home/runner/work/curl/curl/scripts/curl.fish":
  No such file or directory.
Call Stack (most recent call first):
  bld/cmake_install.cmake:52 (include)
```
https://github.com/curl/curl/actions/runs/14086112584/job/39450558258?pr=16833#step:38:528
@vszakats
Copy link
Member Author

vszakats commented Mar 27, 2025

Proposing this for the upcoming release.

Being disabled by default, it's unlikely to cause harm. It also
seems to work in CI when enabled (on Linux and macOS).

@vszakats vszakats closed this in c8b0f0c Mar 28, 2025
@vszakats vszakats deleted the cm-sh-completion branch March 28, 2025 12:52
vszakats added a commit that referenced this pull request Apr 4, 2025
Fixing potential:
```
CMake Error at scripts/CMakeLists.txt:72 (install):
  install FILES given directory "/usr/ports/ftp/curl/work/.build/scripts/" to
  install.
```

Reported-by: Daniel Engberg
Fixes #16946
Follow-up to c8b0f0c #16833
Closes #16954
vszakats added a commit to vszakats/curl that referenced this pull request Apr 18, 2025
Also:
- tidy up the if tree.
- drop `include(GNUInstallDirs)` in favor of the upper-level one.

Reported-by: Daniel Engberg
Bug: curl#16946 (comment)
Follow-up to c8b0f0c curl#16833
vszakats added a commit that referenced this pull request Apr 18, 2025
Also:
- tidy up the `if` tree.
- drop `include(GNUInstallDirs)` in favor of the upper-level one.

Reported-by: Daniel Engberg
Bug: #16946 (comment)
Follow-up to c8b0f0c #16833

Closes #17094
vszakats added a commit to vszakats/curl that referenced this pull request Apr 23, 2025
vszakats added a commit that referenced this pull request Apr 23, 2025
nbaws pushed a commit to nbaws/curl that referenced this pull request Apr 26, 2025
Also:
- tidy up the `if` tree.
- drop `include(GNUInstallDirs)` in favor of the upper-level one.

Reported-by: Daniel Engberg
Bug: curl#16946 (comment)
Follow-up to c8b0f0c curl#16833

Closes curl#17094
nbaws pushed a commit to nbaws/curl that referenced this pull request Apr 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

1 participant