Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Exported CMake targets should be namespaced #633

Open
Assignees
glynos
Labels
Milestone
@amerry

Description

@amerry

The targets exported via the CMakeConfig file should have a double-colon (::) in the name. eg: "cppnetlib::uri", "cppnetlib::server-parsers", etc.

The reason for this is that CMake uses the presence of :: in the name to deduce that a name is an imported target, even if that target does not exist. So if a user mistypes cppnetlib::uri as cpnetlib::uri, CMake will complain at configure time. However, if a user mistypes cppnetlib-uri as cpnetlib-uri, CMake will just tell the link to link to -lcpnetlib-uri, and the build will fail.

This can be done by using the NAMESPACE argument in the export(TARGETS) call.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp