fix: use DTK_NAME_SUFFIX for CMake namespace #25
Merged
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.
The CMake export configuration was using DTK_VERSION_MAJOR for
the namespace in the installed targets file, but this should use
DTK_NAME_SUFFIX instead. This ensures consistent naming across the
build system and proper namespace resolution when other projects link
against DLog. The change affects the INSTALL command for exporting
targets, updating the namespace from Dtk${DTK_VERSION_MAJOR}:: to
Dtk${DTK_NAME_SUFFIX}::.
Influence:
namespace
the new namespace
fix: 使用 DTK_NAME_SUFFIX 作为 CMake 命名空间
CMake 导出配置原本使用 DTK_VERSION_MAJOR 作为已安装目标文件的命名空间,
现应改为使用 DTK_NAME_SUFFIX。这确保了构建系统中的命名一致性,以及其他项
目链接 DLog 时的正确命名空间解析。此更改影响了导出目标的 INSTALL 命令,
将命名空间从 Dtk${DTK_VERSION_MAJOR}:: 更新为 Dtk${DTK_NAME_SUFFIX}::。
Influence: