mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
CPS provides "default targets" as a user convenience which can be linked by specifying only the package name. CMake implements this via a utility `INTERFACE` target. However, because it is not namespaced, this is not a valid requirement, which prevents exporting anything linking to this target to CPS. Work around this by introducing a new (internal) target property which replaces a target with its link interface targets at export time.
18 lines
256 B
Plaintext
18 lines
256 B
Plaintext
{
|
|
"cps_version" : "0.13.0",
|
|
"name" : "foo",
|
|
"cps_path" : "@prefix@/cps",
|
|
"default_components" : [ "foo1", "foo2" ],
|
|
"components" :
|
|
{
|
|
"foo1" :
|
|
{
|
|
"type" : "interface"
|
|
},
|
|
"foo2" :
|
|
{
|
|
"type" : "interface"
|
|
}
|
|
}
|
|
}
|