Add CMake feature and dependency summary

Use CMake's standard package discovery output and FeatureSummary instead
of custom status messages, so configuration reports package
availability, versions, and failure reasons consistently. Rename Ceres
feature controls to use the WITH_ prefix to group them consistently and
eliminate inconcistent naming. Remove retrospective cache updates so
package discovery preserves caller-provided values and avoids
unnecessary side effects.

Fixes #876

Change-Id: Ib6e40d56a0ea89b292fe34554777593ffda95f42
This commit is contained in:
Sergiu Deitsch
2023-09-10 17:46:26 +02:00
parent 2017abdf9e
commit 0b03102b09
14 changed files with 1018 additions and 931 deletions
+1 -1
View File
@@ -121,7 +121,7 @@ jobs:
run: |
cmake -S . -B build_${{matrix.build_type}} \
-DBUILD_SHARED_LIBS=${{matrix.lib == 'shared'}} \
-DUSE_CUDA=${{matrix.gpu == 'cuda'}} \
-DWITH_CUDA=${{matrix.gpu == 'cuda'}} \
-DCMAKE_BUILD_TYPE=${{matrix.build_type}} \
-DCMAKE_C_COMPILER_LAUNCHER=$(which ccache) \
-DCMAKE_CXX_COMPILER_LAUNCHER=$(which ccache) \