Skip to content

fix(deps): cmake_minimum_required ordering and MSVC 1950+ support for CMake 4.x compat#10876

Open
BenJule wants to merge 2 commits into
bambulab:masterfrom
BenJule:upstream/fix/cmake4-deps-compat
Open

fix(deps): cmake_minimum_required ordering and MSVC 1950+ support for CMake 4.x compat#10876
BenJule wants to merge 2 commits into
bambulab:masterfrom
BenJule:upstream/fix/cmake4-deps-compat

Conversation

@BenJule
Copy link
Copy Markdown

@BenJule BenJule commented May 22, 2026

Summary

CMake 4.x requires cmake_minimum_required() to appear before project() in deps/CMakeLists.txt. Without this, builds with CMake 4.0+ fail with a fatal error.

Also adds support for the new MSVC 1950+ toolset (Visual Studio 2026 / v144) in deps-windows.cmake, as the existing code only recognized toolsets up to v143.

  • deps/CMakeLists.txt: move cmake_minimum_required(VERSION 3.5) before project()
  • deps/deps-windows.cmake: add VERSION_GREATER_EQUAL 1950 branch for MSVC v144 toolset detection

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant