summaryrefslogtreecommitdiffstats
path: root/Source/cmTargetPropertyComputer.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-11-21 15:42:24 (GMT)
committerBrad King <brad.king@kitware.com>2016-11-21 16:42:01 (GMT)
commit460052516fdd06a2c0c765359f4d92006e67283b (patch)
tree2513452bbe0c92c0b81b9742cc1272b3e7c4f91a /Source/cmTargetPropertyComputer.cxx
parentacde2c4a5389bfe5b1af697a02c160060db7d6e8 (diff)
downloadCMake-460052516fdd06a2c0c765359f4d92006e67283b.zip
CMake-460052516fdd06a2c0c765359f4d92006e67283b.tar.gz
CMake-460052516fdd06a2c0c765359f4d92006e67283b.tar.bz2
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 3a9bddb..a57bc5a 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;