Progmasoft Git

catch3

Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.

Clonegit clone https://git.progmasoft.com/catch3

Install again with CMake

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>
Commit
a371b0ff18fd18819e0624fcb9a8ad3d94f4ef25
Author
Leitwolf11 ·
Parents
5cbd481125b8

Files · Download .tar.gz

Changes

 .github/workflows/linux-builds.yml | 13 +++++++++++++
 CMakeLists.txt                     |  1 -
 2 files changed, 13 insertions(+), 1 deletion(-)

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"