Skip to content

Make the C++20 Module Optional.#195

Merged
SaschaWillems merged 3 commits intoKhronosGroup:mainfrom
gpx1000:fix-for-vulkanSDK
Oct 10, 2025
Merged

Make the C++20 Module Optional.#195
SaschaWillems merged 3 commits intoKhronosGroup:mainfrom
gpx1000:fix-for-vulkanSDK

Conversation

@gpx1000
Copy link
Copy Markdown
Contributor

@gpx1000 gpx1000 commented Oct 10, 2025

ENABLE_CPP20_MODULE is a new optional value to add to get the C++20 module.

- Update tutorial documentation to reflect optional module usage.
- Adjust CMake option `ENABLE_CPP20_MODULE` default to `OFF`.
- Incorporate fallback to traditional header-based includes when modules are disabled.
- Clarify enablement steps and compatibility details in example code and instructions.
- Change `target_include_directories` from `PRIVATE` to `PUBLIC` for broader access.
- Add MSVC-specific compiler options to support proper C++20 module compatibility.
Copy link
Copy Markdown
Collaborator

@SaschaWillems SaschaWillems left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks a lot for fixing this 👍🏻

@SaschaWillems SaschaWillems merged commit 9c43d60 into KhronosGroup:main Oct 10, 2025
5 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.

Can't build with latest Vulkan SDK (1.4.328, 1.4.328.1) (Windows) Make C++ Module use optional

2 participants