MCPcopy Create free account
hub / github.com/Kitware/CMake / IsArchivedAIXSharedLibrary

Method IsArchivedAIXSharedLibrary

Source/cmTarget.cxx:1262–1283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1260}
1261
1262bool cmTarget::IsArchivedAIXSharedLibrary() const
1263{
1264 if (this->GetType() == cmStateEnums::SHARED_LIBRARY && this->IsAIX()) {
1265 cmValue value = this->GetProperty("AIX_SHARED_LIBRARY_ARCHIVE");
1266 if (!value.IsEmpty()) {
1267 return value.IsOn();
1268 }
1269 if (this->IsImported()) {
1270 return false;
1271 }
1272 switch (this->GetPolicyStatusCMP0182()) {
1273 case cmPolicies::WARN:
1274 case cmPolicies::OLD:
1275 // The OLD behavior's default is to disable shared library archives.
1276 break;
1277 case cmPolicies::NEW:
1278 // The NEW behavior's default is to enable shared library archives.
1279 return true;
1280 }
1281 }
1282 return false;
1283}
1284
1285bool cmTarget::IsAppBundleOnApple() const
1286{

Callers 10

CreateMethod · 0.45
CreateMethod · 0.45
GetFilesMethod · 0.45
WriteLibraryRulesMethod · 0.45
WriteLinkStatementMethod · 0.45

Calls 6

GetTypeMethod · 0.95
IsAIXMethod · 0.95
GetPropertyMethod · 0.95
IsEmptyMethod · 0.45
IsOnMethod · 0.45
IsImportedMethod · 0.45

Tested by

no test coverage detected