summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2022-09-07 13:20:53 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2022-09-07 13:20:53 (GMT)
commit985b4c82a64c064e1d22351091206e73ed6fc727 (patch)
treebde65e548731d5f43b5ebaa666307401cba118ac /Source/cmMakefile.cxx
parenta47eef32a30599e01e445e6dd69d4702bceae1bd (diff)
downloadCMake-985b4c82a64c064e1d22351091206e73ed6fc727.zip
CMake-985b4c82a64c064e1d22351091206e73ed6fc727.tar.gz
CMake-985b4c82a64c064e1d22351091206e73ed6fc727.tar.bz2
Check link libraries properties: fix performances regression
Fixes: #23939
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx25
1 files changed, 0 insertions, 25 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 628eb1d..469eac3 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -3987,31 +3987,6 @@ std::vector<std::string> cmMakefile::GetPropertyKeys() const
return this->StateSnapshot.GetDirectory().GetPropertyKeys();
}
-void cmMakefile::CheckProperty(const std::string& prop) const
-{
- // Certain properties need checking.
- if (prop == "LINK_LIBRARIES") {
- if (cmValue value = this->GetProperty(prop)) {
- // Look for <LINK_LIBRARY:> internal pattern
- static cmsys::RegularExpression linkPattern(
- "(^|;)(</?LINK_(LIBRARY|GROUP):[^;>]*>)(;|$)");
- if (!linkPattern.find(value)) {
- return;
- }
-
- // Report an error.
- this->IssueMessage(
- MessageType::FATAL_ERROR,
- cmStrCat("Property ", prop, " contains the invalid item \"",
- linkPattern.match(2), "\". The ", prop,
- " property may contain the generator-expression \"$<LINK_",
- linkPattern.match(3),
- ":...>\" which may be used to specify how the libraries are "
- "linked."));
- }
- }
-}
-
cmTarget* cmMakefile::FindLocalNonAliasTarget(const std::string& name) const
{
auto i = this->Targets.find(name);