[cmake-developers] target_link_libraries, IMPORTED targets and SYSTEM includes
Matthew Woehlke
matthew.woehlke at kitware.com
Thu Jul 25 11:41:23 EDT 2013
On 2013-07-25 11:25, Stephen Kelly wrote:
> Brad King wrote:
>> On 07/25/2013 09:16 AM, Stephen Kelly wrote:
>>> Should we treat the INTERFACE_INCLUDE_DIRECTORIES of all IMPORTED targets
>>> as SYSTEM includes automatically?
>>
>> I don't think so because one could be importing targets from a dependency
>> that was just built as part of a "superbuild" and may want to see the
>> warnings.
>
> I considered that, but if you're building it as part of a superbuild, you'll
> still get the warning when building the dependency itself.
Not necessarily; library A may provide a utility header that it doesn't
actually use internally, and library B may use it and produce a warning.
(Besides there is more chance of noticing a warning the more times it
trips. For that matter, wouldn't this defeat the purpose in the original
post of being able to include Qt as non-SYSTEM?)
--
Matthew
More information about the cmake-developers
mailing list