diff options
author | Brad King <brad.king@kitware.com> | 2020-07-14 17:55:38 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-08-03 14:04:23 (GMT) |
commit | afb998704e67d3d3ce5b24c112cb06e770fca78d (patch) | |
tree | 8e8ecdb72ffb76a8d122be31211d684f107890db /Source/cmTarget.cxx | |
parent | e7edba2bafc7eb187a05c20acf4e859e500c7c5b (diff) | |
download | CMake-afb998704e67d3d3ce5b24c112cb06e770fca78d.zip CMake-afb998704e67d3d3ce5b24c112cb06e770fca78d.tar.gz CMake-afb998704e67d3d3ce5b24c112cb06e770fca78d.tar.bz2 |
Remove filtering of allowed INTERFACE library properties
Previously we disallowed use of arbitrary properties on INTERFACE
libraries. The goal was to future-proof projects using them by not
allowing properties to be set that may affect their future inclusion in
the generated buildsystem. In order to prepare to actually include
INTERFACE libraries in the generated buildsystem, drop the filter and
allow arbitrary properties to be set.
Issue: #19145
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r-- | Source/cmTarget.cxx | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index 0e5dfef..67d7451 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -1144,11 +1144,6 @@ cmBacktraceRange cmTarget::GetLinkImplementationBacktraces() const void cmTarget::SetProperty(const std::string& prop, const char* value) { - if (!cmTargetPropertyComputer::PassesWhitelist( - this->GetType(), prop, impl->Makefile->GetMessenger(), - impl->Makefile->GetBacktrace())) { - return; - } #define MAKE_STATIC_PROP(PROP) static const std::string prop##PROP = #PROP MAKE_STATIC_PROP(C_STANDARD); MAKE_STATIC_PROP(CXX_STANDARD); @@ -1355,11 +1350,6 @@ void cmTarget::SetProperty(const std::string& prop, const char* value) void cmTarget::AppendProperty(const std::string& prop, const std::string& value, bool asString) { - if (!cmTargetPropertyComputer::PassesWhitelist( - this->GetType(), prop, impl->Makefile->GetMessenger(), - impl->Makefile->GetBacktrace())) { - return; - } if (prop == "NAME") { impl->Makefile->IssueMessage(MessageType::FATAL_ERROR, "NAME property is read-only\n"); |