diff options
author | Brad King <brad.king@kitware.com> | 2017-11-30 12:57:01 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2017-11-30 12:57:08 (GMT) |
commit | 5d43e46ad5e2760f0e149959dc09b1414d54f362 (patch) | |
tree | d98f9c8893e3f31010a03bb72dc4ff131ab422de /Source | |
parent | 21806e6f5f817c4c6cd1d2a304839b460d1fdbbc (diff) | |
parent | fb3c5bfdbe87786169dfe6d3ddaa86f4f6a5676f (diff) | |
download | CMake-5d43e46ad5e2760f0e149959dc09b1414d54f362.zip CMake-5d43e46ad5e2760f0e149959dc09b1414d54f362.tar.gz CMake-5d43e46ad5e2760f0e149959dc09b1414d54f362.tar.bz2 |
Merge topic 'whitelist-more-interface-properties'
fb3c5bfd cmTargetPropertyComputer: whitelist custom properties
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1515
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmTargetPropertyComputer.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmTargetPropertyComputer.cxx b/Source/cmTargetPropertyComputer.cxx index ed9026e..06ce0b1 100644 --- a/Source/cmTargetPropertyComputer.cxx +++ b/Source/cmTargetPropertyComputer.cxx @@ -3,6 +3,7 @@ #include "cmTargetPropertyComputer.h" +#include <cctype> #include <sstream> #include <unordered_set> @@ -49,6 +50,12 @@ bool cmTargetPropertyComputer::WhiteListedInterfaceProperty( if (cmHasLiteralPrefix(prop, "INTERFACE_")) { return true; } + if (cmHasLiteralPrefix(prop, "_")) { + return true; + } + if (std::islower(prop[0])) { + return true; + } static std::unordered_set<std::string> builtIns; if (builtIns.empty()) { builtIns.insert("COMPATIBLE_INTERFACE_BOOL"); |