Skip to content

Conversation

@evaleev
Copy link
Member

@evaleev evaleev commented Feb 9, 2026

This pull request updates the CMake feature checks in modules/CheckCXXFeatures.cmake to improve handling of compiler-specific C++ features. The most significant change is the addition of a new macro for checking support for the C++ feature P0522R0 (relaxed matching of template template arguments), which is required for certain template usages. Additionally, the pull request refactors the way linker check variables are named to avoid conflicts in multi-project builds.

C++ feature checks:

  • Added a new macro vgkit_check_p0522r0 to detect compiler support for P0522R0 (relaxed template template argument matching), and to set a compile flag if necessary, or fail with a clear error if unsupported.

Refactoring and variable scoping:

  • Updated the linker check macros to use project-specific variable names (VGKIT_LIBCXX_LINKS_${PROJECT_NAME} and VGKIT_LIBCXX_LINKS_WITH_FLAGS_${PROJECT_NAME}) to prevent variable collisions when used in multiple projects. [1] [2]

evaleev added a commit to ValeevGroup/BTAS that referenced this pull request Feb 9, 2026
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