diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2024-06-16 13:37:37 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2024-06-21 09:18:12 (GMT) |
commit | 5617c34c3135f7ec203d5a48b803eb323f458bc3 (patch) | |
tree | c924f13607ec0db9ba89cf7ccd9f97b60b2278b7 /Source | |
parent | c3821911f8a7f6017cbbd4fddc560d0ec6586185 (diff) | |
download | CMake-5617c34c3135f7ec203d5a48b803eb323f458bc3.zip CMake-5617c34c3135f7ec203d5a48b803eb323f458bc3.tar.gz CMake-5617c34c3135f7ec203d5a48b803eb323f458bc3.tar.bz2 |
Libraries processing: update configuration wording
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmComputeLinkDepends.cxx | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/Source/cmComputeLinkDepends.cxx b/Source/cmComputeLinkDepends.cxx index cc323f4..2f24ad7 100644 --- a/Source/cmComputeLinkDepends.cxx +++ b/Source/cmComputeLinkDepends.cxx @@ -376,8 +376,10 @@ public: case cmPolicies::NEW: { if (auto libProcessing = makefile->GetDefinition(cmStrCat( "CMAKE_", linkLanguage, "_LINK_LIBRARIES_PROCESSING"))) { + // UNICITY keyword is just for compatibility with previous + // implementation cmsys::RegularExpression processingOption{ - "^(ORDER|UNICITY)=(FORWARD|REVERSE|ALL|NONE|SHARED)$" + "^(ORDER|UNICITY|DEDUPLICATION)=(FORWARD|REVERSE|ALL|NONE|SHARED)$" }; std::string errorMessage; for (auto const& option : cmList{ libProcessing }) { @@ -390,13 +392,14 @@ public: } else { errorMessage += cmStrCat(" ", option, '\n'); } - } else if (processingOption.match(1) == "UNICITY") { + } else if (processingOption.match(1) == "UNICITY" || + processingOption.match(1) == "DEDUPLICATION") { if (processingOption.match(2) == "ALL") { - this->Unicity = All; + this->Deduplication = All; } else if (processingOption.match(2) == "NONE") { - this->Unicity = None; + this->Deduplication = None; } else if (processingOption.match(2) == "SHARED") { - this->Unicity = Shared; + this->Deduplication = Shared; } else { errorMessage += cmStrCat(" ", option, '\n'); } @@ -499,7 +502,7 @@ private: Reverse }; - enum UnicityKind + enum DeduplicationKind { None, Shared, @@ -520,11 +523,11 @@ private: } } - return this->Unicity == None || - (this->Unicity == Shared && + return this->Deduplication == None || + (this->Deduplication == Shared && (entry.Target == nullptr || entry.Target->GetType() != cmStateEnums::SHARED_LIBRARY)) || - (this->Unicity == All && entry.Kind != LinkEntry::Library); + (this->Deduplication == All && entry.Kind != LinkEntry::Library); } template <typename Range> @@ -539,7 +542,7 @@ private: } OrderKind Order = Reverse; - UnicityKind Unicity = Shared; + DeduplicationKind Deduplication = Shared; const cmGeneratorTarget* Target; const std::string& LinkLanguage; EntryVector& Entries; |