add an option for full install, (#1252)

include impl headers with precompiled option.

This may be necessary for some package installs if they wish to include
the precompiled static library alongside the header only install.
inspired by #1198

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Philip Top
2025-11-21 06:04:10 -08:00
committed by GitHub
parent 98e47b4c53
commit 9b939ae821
5 changed files with 32 additions and 6 deletions

View File

@@ -244,6 +244,25 @@ jobs:
- name: Run tests
run: ctest --output-on-failure -L Packaging
working-directory: build
install-precompiled-all:
name: install tests precompiled full install
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Configure
run: cmake -S . -B build -DCLI11_INSTALL_PACKAGE_TESTS=ON -DCLI11_ENABLE_EXTRA_VALIDATORS=ON -DCMAKE_INSTALL_PREFIX=/home/runner/work/install -DCLI11_PRECOMPILED=ON -DCLI11_FULL_INSTALL=ON
- name: Build
run: cmake --build build -j2
- name: install
run: cmake --install build
- name: Configure2
run: cmake -S . -B build -DCLI11_INSTALL_PACKAGE_TESTS=ON -DCMAKE_INSTALL_PREFIX=/home/runner/work/install
- name: Run tests
run: ctest --output-on-failure -L Packaging
working-directory: build
install-precompiled-macos:
name: install tests precompiled macos