From 460052516fdd06a2c0c765359f4d92006e67283b Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 21 Nov 2016 10:42:24 -0500 Subject: 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 --- Source/cmTargetPropertyComputer.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'Source/cmTargetPropertyComputer.cxx') 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; -- cgit v1.2.1