Skip to content

Prepare CMake v4.5 usage - #483

Merged
Neargye merged 7 commits into
Neargye:masterfrom
ClausKlein:feature/prepare_cmake_v4_5
Nov 20, 2026
Merged

Neargye merged 7 commits into
Neargye:masterfrom
ClausKlein:feature/prepare_cmake_v4_5

Conversation

@ClausKlein

Copy link
Copy Markdown
Contributor

ClausKlein and others added 7 commits November 19, 2026 21:15
CMake 4.5 removed CMAKE_CXX_COMPILER_IMPORT_STD and CXX_MODULE_STD.
Check toolchain support through CMAKE_CXX_STDLIB_MODULES_JSON, keep
MAGIC_ENUM_MODULE_IMPORT_STD under user control and validate it once.
Test CMake 4.5 on all module runners and keep CMake 4.4 for the
experimental import std path.
@Neargye

Neargye commented Nov 20, 2026

Copy link
Copy Markdown
Owner

Thanks for the PR, @ClausKlein! This is an important addition right before the release.

I pushed a few fixes on top:

  • MAGIC_ENUM_MODULE_IMPORT_STD is no longer forced ON with CMake 4.5. Toolchain support is checked through CMAKE_CXX_STDLIB_MODULES_JSON, and C++23 is still required.
  • CI now tests CMake 4.5.1 on all module runners. CMake 4.4 is kept for the experimental import std path, without MSVC because 4.4 does not link the std module objects there.
  • Fixed libc++.modules.json lookup on macOS with Homebrew LLVM.

@Neargye Neargye closed this Nov 20, 2026
@Neargye Neargye reopened this Nov 20, 2026
@Neargye
Neargye merged commit 1bb6ca4 into Neargye:master Nov 20, 2026
17 of 57 checks passed
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.

2 participants