-
Notifications
You must be signed in to change notification settings - Fork 0
Testing CPP library update #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Added conditional execution for environment setup and CMake configuration steps based on the presence of matrix.cc.
Changed the stlab/cpp-library commit hash in CPMAddPackage to 69e1aff67499f3fb227f279a5472e46d312b3a84 for improved compatibility or bug fixes.
Bumped the stlab/cpp-library dependency from commit 69e1aff to 39419e2 to incorporate recent changes and improvements from the upstream repository.
Removes the install-test job from the CI workflow and updates the stlab/cpp-library dependency to a new commit hash in CMakeLists.txt. Also fixes quoting in INSTALL_PREFIX assignment for cross-platform compatibility.
Renamed the CMake project from 'stlab-enum-ops' to 'enum-ops' and updated the referenced dependency hash for 'cpp-library'. Also updated the CI workflow to use the new project name in find_package and status messages.
The CI workflow now sets CC and CXX environment variables conditionally based on the matrix, and splits the build/install steps accordingly. The cpp-library dependency is updated to commit 4f09b3b7f0abcc4ef1b39060ce03784920ce32e5 in CMakeLists.txt.
| find_package(stlab-enum-ops REQUIRED) | ||
| message(STATUS "Successfully found stlab-enum-ops") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: Package name mismatch between CMakeLists and workflow test
The workflow test tries to find a package named stlab-enum-ops, but the project name in CMakeLists.txt was changed to enum-ops. This mismatch will cause the cmake command in the "Test find_package" step to fail with a package not found error, since the generated CMake config files will use the new project name.
Note
Expands CI with named OS/compiler matrix and install/find_package verification, renames project, updates cpp-library reference, and adds an install CMake preset.
Ubuntu GCC,Ubuntu Clang,macOS,Windows; setfail-fast: false.CC/CXXper matrix entry.find_package(stlab-enum-ops)verification usingCMAKE_PREFIX_PATH.stlab-enum-opstoenum-opsinCMakeLists.txt.4f09b3b...).CPM_SOURCE_CACHEsetup when not predefined.installconfigure/build presets inCMakePresets.jsonfor local install testing.Written by Cursor Bugbot for commit d212a13. This will update automatically on new commits. Configure here.