Add features.cmake for unified KCENON_* macro configuration#228
Merged
Conversation
Add CMake module for configuring unified feature flags: - Add kcenon_configure_features() function for setting KCENON_WITH_* compile definitions on targets - Add kcenon_detect_features() function for compile-time feature detection (C++20, jthread, concepts) - Add kcenon_print_feature_config() for debugging feature settings - Integrate features.cmake into CMakeLists.txt and install target - Update common_systemConfig.cmake.in to include features.cmake This completes the CMake export requirement for issue #224.
- Add "Unified Feature Flags" section to FEATURES.md describing KCENON_* macros for C++ feature detection and system integration - Document features.cmake usage and available CMake functions - Add legacy alias deprecation notice to DEPRECATION.md with migration guide from old macro names to KCENON_* convention - Update "Ecosystem Integration Flags" section with new macro names
kcenon
added a commit
that referenced
this pull request
Apr 13, 2026
* feat(cmake): add features.cmake for KCENON_* macro configuration Add CMake module for configuring unified feature flags: - Add kcenon_configure_features() function for setting KCENON_WITH_* compile definitions on targets - Add kcenon_detect_features() function for compile-time feature detection (C++20, jthread, concepts) - Add kcenon_print_feature_config() for debugging feature settings - Integrate features.cmake into CMakeLists.txt and install target - Update common_systemConfig.cmake.in to include features.cmake This completes the CMake export requirement for issue #224. * docs: add unified feature flags documentation - Add "Unified Feature Flags" section to FEATURES.md describing KCENON_* macros for C++ feature detection and system integration - Document features.cmake usage and available CMake functions - Add legacy alias deprecation notice to DEPRECATION.md with migration guide from old macro names to KCENON_* convention - Update "Ecosystem Integration Flags" section with new macro names
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
features.cmakeCMake module for configuring KCENON_* compile definitionsChanges
CMake Module (
cmake/features.cmake)kcenon_configure_features(): Configure KCENON_WITH_* flags for targetskcenon_detect_features(): Detect C++ features at configure timekcenon_print_feature_config(): Debug helper for feature settingsIntegration
Documentation
Test Plan
Closes #224