Skip to content

Build fails with cmake 4.x#966

Merged
schaubh merged 9 commits into
developfrom
feature/cmake_4_0_issue
Mar 31, 2025
Merged

Build fails with cmake 4.x#966
schaubh merged 9 commits into
developfrom
feature/cmake_4_0_issue

Conversation

@schaubh
Copy link
Copy Markdown
Contributor

@schaubh schaubh commented Mar 28, 2025

  • Tickets addressed: bsk-965
  • Review: By commit
  • Merge strategy: Merge (no squash)

Description

A clean build fails building in the conan dependency install process for zeromq/4.3.5. We need to use cmake<4.0 for now.

The install process is changed to install cmake<4.0 with the pip command by adding this requirement to requirements_dev.txt. The CI build verification scripts are changed to not explicitly install cmake anymore. Build instructions are updated to remove the step to manually install cmake.

Verification

All CI build scripts pass again across all platforms.

Documentation

Updated release notes, as well as the platform instructions. RST documentation was updated to support adding a button to copy the code blocks in HTML documentation.

Future work

When zeromq is compatible with cmake>3.x the requirement can be updated again to allow newer versions of cmake.

@schaubh schaubh added bug Something isn't working documentation Improvements or additions to documentation labels Mar 28, 2025
@schaubh schaubh self-assigned this Mar 28, 2025
@schaubh schaubh requested a review from a team as a code owner March 28, 2025 15:31
@schaubh schaubh added this to Basilisk Mar 28, 2025
@schaubh schaubh linked an issue Mar 28, 2025 that may be closed by this pull request
@schaubh schaubh moved this to 👀 In review in Basilisk Mar 28, 2025
@schaubh schaubh requested a review from Mark2000 March 28, 2025 15:34
Copy link
Copy Markdown
Contributor

@juan-g-bonilla juan-g-bonilla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor comment. I see this is also a bunch of small QOL features. Thanks for the quick fix!

Comment thread conanfile.py Outdated
schaubh added 8 commits March 30, 2025 10:18
The zeromq dependency is installed if cppzmq is required.  The encryption setting only needs to be set if we build with vizInterface or opNav.  Before the setting was always set.  In fact, it was being set twice?
We now need cmake<4.0.  This is easily controlled if we let pip install cmake into our python virtual environment. This also allows the user to use other versions of cmake for other projects if needed.
The RST documentation setups a virtual environment in .venv.  But, in places the RST documentation uses (venv) instead of (.venv).  This is now corrected.
Rather, now cmake is installed via pip into the local virtual environment.
@schaubh schaubh force-pushed the feature/cmake_4_0_issue branch from 76d9480 to 53856d6 Compare March 30, 2025 16:19
This allows pip wheels to be built again.
@schaubh schaubh force-pushed the feature/cmake_4_0_issue branch from 5d1f880 to b5428e2 Compare March 30, 2025 20:59
Copy link
Copy Markdown
Contributor

@Mark2000 Mark2000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

Comment thread .github/workflows/pull-request.yml
@schaubh schaubh merged commit bed4993 into develop Mar 31, 2025
10 checks passed
@schaubh schaubh deleted the feature/cmake_4_0_issue branch March 31, 2025 16:51
@github-project-automation github-project-automation Bot moved this from 👀 In review to ✅ Done in Basilisk Mar 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

Clean install with cmake 4.x failed to build

3 participants