diff options
| author | Leitwolf11 | 2026-11-01 21:46:59 +0300 |
|---|---|---|
| committer | Leitwolf11 | 2026-11-01 21:46:59 +0300 |
| commit | a371b0ff18fd18819e0624fcb9a8ad3d94f4ef25 (patch) | |
| tree | c0198de51692d1a509cf4f8273ce7f274d7e0dd0 | |
| parent | 5cbd481125b881a4c2eed74050be9899eb3f23a7 (diff) | |
| download | catch3-fix/cmake-install.tar.gz | |
Install again with CMakefix/cmake-install
cmake --install failed on extras/ParseAndAddCatchTests.cmake, which the
rename to Catch3 removed while CMakeLists.txt kept listing it. No job ran
an install, so nothing showed it. The Linux job now installs the library
and finds the installed package.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
| -rw-r--r-- | .github/workflows/linux-builds.yml | 13 | ||||
| -rw-r--r-- | CMakeLists.txt | 1 |
2 files changed, 13 insertions, 1 deletions
diff --git a/.github/workflows/linux-builds.yml b/.github/workflows/linux-builds.yml index 5290574b..a9c38c66 100644 --- a/.github/workflows/linux-builds.yml +++ b/.github/workflows/linux-builds.yml @@ -52,6 +52,19 @@ jobs: - name: Test run: ctest --test-dir build -j + - name: Install, and find the installed package + run: | + cmake --install build --prefix "$RUNNER_TEMP/catch3" + mkdir "$RUNNER_TEMP/consumer" + cat > "$RUNNER_TEMP/consumer/CMakeLists.txt" <<'EOF' + cmake_minimum_required(VERSION 3.16) + project(Consumer CXX) + find_package(Catch3 REQUIRED) + EOF + cmake -S "$RUNNER_TEMP/consumer" -B "$RUNNER_TEMP/consumer/build" \ + -GNinja -DCMAKE_CXX_COMPILER=clang++ \ + -DCMAKE_PREFIX_PATH="$RUNNER_TEMP/catch3" + thread-sanitizer: name: Ubuntu 26.04, C++17, ThreadSanitizer and UBSan runs-on: ubuntu-26.04 diff --git a/CMakeLists.txt b/CMakeLists.txt index 6806acf0..552da5af 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -164,7 +164,6 @@ if(NOT_SUBPROJECT) # Install CMake scripts install( FILES - "extras/ParseAndAddCatchTests.cmake" "extras/Catch3.cmake" "extras/Catch3AddTests.cmake" "extras/Catch3ShardTests.cmake" |