Skip to content

build(cmake): add compiler and generator validation for C++20 modules#281

Merged
kcenon merged 1 commit into
mainfrom
feature/277-module-test-verification
Jan 10, 2026
Merged

build(cmake): add compiler and generator validation for C++20 modules#281
kcenon merged 1 commit into
mainfrom
feature/277-module-test-verification

Conversation

@kcenon

@kcenon kcenon commented Jan 10, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add AppleClang detection to disable module build (lacks dependency scanning support)
  • Add CMake generator validation (requires Ninja or Visual Studio)
  • Provide clear warning messages for unsupported configurations

Test Results

✅ All 109 tests passed with header-only build
⚠️ AppleClang module limitation documented and handled gracefully

Test Plan

  • Verify header-only build works (backward compatibility)
  • Verify module build with AppleClang shows appropriate warning
  • Verify all unit and integration tests pass
  • Document compiler compatibility in issue

Related Issues

Closes #277

Part of Phase 3 (C++20 Module Stabilization) from #275

Add pre-configuration checks for C++20 module build support:
- Detect AppleClang which lacks module dependency scanning
- Verify Ninja or Visual Studio generator is used
- Provide clear warning messages when modules are disabled

This enables graceful fallback to header-only build on unsupported
configurations instead of cryptic CMake errors.

Closes #277
@kcenon kcenon merged commit 0fd43f6 into main Jan 10, 2026
22 checks passed
@kcenon kcenon deleted the feature/277-module-test-verification branch January 10, 2026 15:10
kcenon added a commit that referenced this pull request Apr 13, 2026
…#281)

Add pre-configuration checks for C++20 module build support:
- Detect AppleClang which lacks module dependency scanning
- Verify Ninja or Visual Studio generator is used
- Provide clear warning messages when modules are disabled

This enables graceful fallback to header-only build on unsupported
configurations instead of cryptic CMake errors.

Closes #277
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.

[MODULE-P3] Test verification with module builds

1 participant