Skip to content

Fix Maya SDK resolution and clean up CMake presets - #4

Merged
sstarosz merged 1 commit into
mainfrom
fix/cmake-build-fixes
Aug 9, 2026
Merged

Fix Maya SDK resolution and clean up CMake presets#4
sstarosz merged 1 commit into
mainfrom
fix/cmake-build-fixes

Conversation

@sstarosz

@sstarosz sstarosz commented Aug 9, 2026

Copy link
Copy Markdown
Owner

Small, self-contained build-system fixes.

Changes

cmake/FindMaya.cmake

Fix SDK resolution: prefer the cached SDK matching MAYA_VERSION first, then scan the remaining cached SDKs newest-first as a fallback. Previously a Maya-2027 build could resolve the 2026 SDK just because it was cached earlier.

CMakePresets.json

  • Remove the unused ci configure + build preset (no workflow, script, or doc depends on it — CI uses the maya* presets).
  • Remove the redundant BUILD_NATIVE_MODULE=ON override from the base preset (the option already defaults to ON).
  • Add explicit Debug/Release configuration to the maya* build presets.

docs/CPPDevelopment.md

Replace the removed ci-preset instructions with the maya2026-release -DBUILD_TESTS=ON flow in the two unit-test sections.

CHANGELOG.md

Note the SDK-resolution fix and the preset cleanup under [Unreleased].

- cmake/FindMaya.cmake: prefer the cached SDK matching MAYA_VERSION before
  scanning the other cached SDKs (newest-first) as a fallback, so a Maya-2027
  build never resolves the 2026 SDK just because it was cached earlier.
- CMakePresets.json: drop the unused ci preset (configure + build) and the
  redundant BUILD_NATIVE_MODULE=ON override (the option already defaults to
  ON), and add explicit Debug/Release configuration to the build presets.
- docs/CPPDevelopment.md: replace the removed ci-preset instructions with
  the maya2026-release -DBUILD_TESTS=ON flow.
- CHANGELOG.md: note the SDK-resolution fix and the preset cleanup.

Extracted from feature/physics-system (PR #3) so the build-system fixes can
be reviewed independently of the physics feature.
@sstarosz sstarosz self-assigned this Aug 9, 2026
@sstarosz sstarosz added the Enhancement New feature or request label Aug 9, 2026
@sstarosz
sstarosz merged commit 8f5da8e into main Aug 9, 2026
2 checks passed
sstarosz added a commit that referenced this pull request Aug 9, 2026
- vcpkg.json: add Bullet 3.25 (float precision) as the first C/C++ dependency.
- CMakeLists.txt: fail with clear instructions when no CMake toolchain is
  configured, then resolve Bullet via find_package(Bullet CONFIG REQUIRED).
- CMakePresets.json: add the hidden with-vcpkg preset that activates the
  vcpkg toolchain from \, and make all maya* presets inherit it.
- .github/workflows: set up vcpkg (lukka/run-vcpkg) in pr-checks and release.
- .gitignore: ignore third_party/ and vcpkg_installed/.
- docs/CPPDevelopment.md: document vcpkg setup + troubleshooting.
- README.md: list vcpkg as a prerequisite and note auto-install of deps.
- CHANGELOG.md: note vcpkg dependency management under [Unreleased].
- tests/CMakeLists.txt: drop the stale 'Re-enable the CI preset (ci)' comment
  (the ci preset was removed in PR #4).

Part of the feature/physics-system (PR #3) split — stacked on PR #4
(fix/cmake-build-fixes).
sstarosz added a commit that referenced this pull request Aug 9, 2026
- vcpkg.json: add Bullet 3.25 (float precision) as the first C/C++ dependency.
- CMakeLists.txt: fail with clear instructions when no CMake toolchain is
  configured, then resolve Bullet via find_package(Bullet CONFIG REQUIRED).
- CMakePresets.json: add the hidden with-vcpkg preset that activates the
  vcpkg toolchain from \, and make all maya* presets inherit it.
- .github/workflows: set up vcpkg (lukka/run-vcpkg) in pr-checks and release.
- .gitignore: ignore third_party/ and vcpkg_installed/.
- docs/CPPDevelopment.md: document vcpkg setup + troubleshooting.
- README.md: list vcpkg as a prerequisite and note auto-install of deps.
- CHANGELOG.md: note vcpkg dependency management under [Unreleased].
- tests/CMakeLists.txt: drop the stale 'Re-enable the CI preset (ci)' comment
  (the ci preset was removed in PR #4).

Part of the feature/physics-system (PR #3) split — stacked on PR #4
(fix/cmake-build-fixes).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant