CMake `4.3.0` breaks default `Vulkan-HppModule` CPP23 Module compilation
envgap__KhronosGroup__Vulkan-Hpp-2525
01 / FAILURE SIGNATURE
As reported upstream
No identifying execution failure has been captured.
Not a benchmark task.
- The project already builds and runs before the fix, so there is nothing to repair.
02 / ENVIRONMENT RECIPE
- Base commit
24cdb5b0c1bdbba732060d4c70e48bd25dcf9d30- Manifest
CMakeLists.txt- Reproduce
Awaiting issue-specific recipe- Run under trace
Awaiting a meaningful runtime command
03 / ORIGINAL ISSUE TEXT
KhronosGroup/Vulkan-Hpp #2525 · read the original issue
The new CMake `4.3.0` just made it into my package manager and I updated from `4.2.3`, which broke the default CMake configuration for the `Vulkan-HppModule` target. Wheter or not to build vulkan-hpp as a CPP Module is determined in this line: https://github.com/KhronosGroup/Vulkan-Hpp/blob/9ac248f0fe1d455a2e85f293a3cc456755ec9faf/CMakeLists.txt#L44 which relies on the presence of `__CMAKE::CXX23`. But that symbol is now gone in `4.3.0` for whatever reason, even if `import std;` is enabled. Of course you can manually specify `VULKAN_HPP_BUILD_CXX_MODULE`, but the default detection is broken with Cmake `4.3.0` Tracking this here on CMake's side: https://gitlab.kitware.com/cmake/cmake/-/issues/27706
04 / LABELS
Labels from the report text only; not yet run
No supported category has been assigned.
Label rules and the text that matched
[]