cmake: distcheck for files in CMake subdir

- add CMake option to verify if the `CMake/*.cmake`, `CMake/*.in` files
  are listed as distributable in autotools' `EXTRA_DIST`. The check can
  be enabled with `-DENABLE_DIST_TEST=ON` CMake option.

- add CI job to that effect.

Ref: #14320
Closes #14323
This commit is contained in:
Viktor Szakats 2024-07-31 11:53:31 +02:00
parent 404679d25f
commit a118a6ecdd
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
3 changed files with 38 additions and 1 deletions

View file

@ -129,3 +129,13 @@ jobs:
cmake -B build -DCURL_WERROR=ON
make -C build -j5
name: 'verify out-of-tree cmake build'
verify-cmake-test-dist:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: 'cmake test dist'
run: |
cmake -B build -DENABLE_DIST_TEST=ON