mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-29 04:09:35 +03:00
Teach CPS import to read the `link_libraries` attribute. We've exported this for a long time, but apparently the code to read it back was never implemented. (To be fair, use of this attribute is discouraged.)
50 lines
983 B
Plaintext
50 lines
983 B
Plaintext
{
|
|
"cps_version": "0.14.0",
|
|
"name": "RequiresTest",
|
|
"cps_path": "@prefix@/cps",
|
|
"components": {
|
|
"Indirect": {
|
|
"type": "interface",
|
|
"requires": [ ":Direct" ]
|
|
},
|
|
"Direct": {
|
|
"type": "interface",
|
|
"definitions": {
|
|
"*": {
|
|
"ANSWER": 42
|
|
}
|
|
}
|
|
},
|
|
"CompileOnly": {
|
|
"type": "interface",
|
|
"compile_requires": [ ":BrokenLibrary" ]
|
|
},
|
|
"BrokenLibrary": {
|
|
"type": "archive",
|
|
"location": "@prefix@/lib/does-not-exist.a",
|
|
"definitions": {
|
|
"*": {
|
|
"ANSWER": 42
|
|
}
|
|
}
|
|
},
|
|
"Private1": {
|
|
"type": "dylib"
|
|
},
|
|
"Private2": {
|
|
"type": "dylib"
|
|
},
|
|
"Other": {
|
|
"type": "dylib",
|
|
"link_libraries": [ "every-config" ],
|
|
"dyld_requires": [ ":Private1" ],
|
|
"configurations": {
|
|
"test": {
|
|
"link_libraries": [ "test-config" ],
|
|
"dyld_requires": [ ":Private2" ]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|