Skip to content

fix(cmake): standardize exported target name to database_system::database_system#555

Merged
kcenon merged 2 commits into
mainfrom
fix/issue-78-standardize-target-naming
Apr 10, 2026
Merged

fix(cmake): standardize exported target name to database_system::database_system#555
kcenon merged 2 commits into
mainfrom
fix/issue-78-standardize-target-naming

Conversation

@kcenon

@kcenon kcenon commented Apr 9, 2026

Copy link
Copy Markdown
Owner

What

Summary

Standardize the CMake exported target name from database_system::database to
database_system::database_system, following the <package>::<package> convention.

Change Type

  • Bugfix (fixes an issue)

Affected Components

  • database/CMakeLists.txt - Added EXPORT_NAME database_system property
  • cmake/database_system-config.cmake.in - Added backward compatibility alias

Why

Problem Solved

After find_package(database_system), consumers previously got
database_system::database instead of the conventional
database_system::database_system. This deviates from the standard
<package>::<package> naming convention used by most CMake packages.

Related Issues

Where

Files Changed

File Type of Change
database/CMakeLists.txt Added EXPORT_NAME property
cmake/database_system-config.cmake.in Added alias + updated docs
docs/README.kr.md Fixed pre-existing broken anchors

How

Implementation Details

  1. Added EXPORT_NAME database_system to set_target_properties() in
    database/CMakeLists.txt so the exported target becomes
    database_system::database_system without renaming the actual CMake target.

  2. Added a backward-compatible alias in the config template:

    if(NOT TARGET database_system::database)
        add_library(database_system::database ALIAS database_system::database_system)
    endif()
  3. Updated database_system_LIBRARIES variable and documentation comments
    in the config template.

Breaking Changes

None - existing consumers using database_system::database will continue
to work via the backward-compatible alias.

kcenon added 2 commits April 10, 2026 08:58
Fix intra-file TOC anchors that had a leading dash from emoji
stripping (e.g., #-문서-개요 -> #문서-개요).

Remove fragment anchors from inter-file references to docs/guides/
that the anchor validator cannot resolve.
…base_system

Set EXPORT_NAME property on the database target so consumers get
database_system::database_system after find_package(database_system),
following the <package>::<package> convention.

A backward-compatible alias (database_system::database) is provided
in the config template so existing consumers continue to work.

Part of kcenon/vcpkg-registry#78
@github-actions

Copy link
Copy Markdown
Contributor

Benchmark Results

No comparison reports available. Baseline may not be established yet.

@kcenon kcenon merged commit 0c155d9 into main Apr 10, 2026
31 checks passed
@kcenon kcenon deleted the fix/issue-78-standardize-target-naming branch April 10, 2026 05:31
kcenon added a commit that referenced this pull request Apr 13, 2026
…base_system (#555)

* docs: fix broken markdown anchors in docs/README.kr.md

Fix intra-file TOC anchors that had a leading dash from emoji
stripping (e.g., #-문서-개요 -> #문서-개요).

Remove fragment anchors from inter-file references to docs/guides/
that the anchor validator cannot resolve.

* fix(cmake): standardize exported target name to database_system::database_system

Set EXPORT_NAME property on the database target so consumers get
database_system::database_system after find_package(database_system),
following the <package>::<package> convention.

A backward-compatible alias (database_system::database) is provided
in the config template so existing consumers continue to work.

Part of kcenon/vcpkg-registry#78
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