summaryrefslogtreecommitdiff
path: root/Source/cmTargetPropertyComputer.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-11-21 10:42:24 -0500
committerBrad King <brad.king@kitware.com>2016-11-21 11:42:01 -0500
commit460052516fdd06a2c0c765359f4d92006e67283b (patch)
tree2513452bbe0c92c0b81b9742cc1272b3e7c4f91a /Source/cmTargetPropertyComputer.cxx
parentacde2c4a5389bfe5b1af697a02c160060db7d6e8 (diff)
downloadcmake-460052516fdd06a2c0c765359f4d92006e67283b.tar.gz
Allow NO_SYSTEM_FROM_IMPORTED on imported INTERFACE libraries
Imported INTERFACE libraries can specify include directories via `INTERFACE_INCLUDE_DIRECTORIES` so the default behavior of treating them as system include directories applies. Allow users to turn this off by setting `NO_SYSTEM_FROM_IMPORTED` on such targets. Closes: #16443
Diffstat (limited to 'Source/cmTargetPropertyComputer.cxx')
-rw-r--r--Source/cmTargetPropertyComputer.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmTargetPropertyComputer.cxx b/Source/cmTargetPropertyComputer.cxx
index 3a9bddb4cb..a57bc5aea5 100644
--- a/Source/cmTargetPropertyComputer.cxx
+++ b/Source/cmTargetPropertyComputer.cxx
@@ -66,6 +66,7 @@ bool cmTargetPropertyComputer::WhiteListedInterfaceProperty(
}
if (prop == "IMPORTED_CONFIGURATIONS" || prop == "IMPORTED_LIBNAME" ||
+ prop == "NO_SYSTEM_FROM_IMPORTED" ||
cmHasLiteralPrefix(prop, "IMPORTED_LIBNAME_") ||
cmHasLiteralPrefix(prop, "MAP_IMPORTED_CONFIG_")) {
return true;