Skip to content

update CheckCXXFeatures - #22

Merged
evaleev merged 3 commits into
masterfrom
feature/check-cxx-features
Oct 28, 2026
Merged

evaleev merged 3 commits into
masterfrom
feature/check-cxx-features

Conversation

@evaleev

@evaleev evaleev commented Feb 9, 2026

Copy link
Copy Markdown
Member

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
evaleev force-pushed the feature/check-cxx-features branch from 6d115a5 to 624173e Compare October 28, 2026 12:17
… checks whenever the C++ standard library is libc++ (not only for Clang), and derives the Clang-specific remedy only for Clang with a GNU-style driver
@evaleev
evaleev merged commit 042b5b6 into master Oct 28, 2026
@evaleev
evaleev deleted the feature/check-cxx-features branch October 28, 2026 12:31
@Krzmbrzl

Krzmbrzl commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

FYI: Force-pushing + deleting this branch seems to have broken SeQuant CI (see current failure on master). I'll update SeQuant to point to master instead -> ValeevGroup/SeQuant#744

Krzmbrzl added a commit to Krzmbrzl/SeQuant that referenced this pull request Oct 28, 2026
We used to fetch from a separate feature branch which just got force-pushed merged (ValeevGroup/kit-cmake#22) which seems to have made the relevant commit disappear.
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