Skip to content
  • Sebastian Holtermann's avatar
    Autogen: Do not treat hard-coded -I/usr/include exclusion as implicit include · a8b7cbb7
    Sebastian Holtermann authored and Brad King's avatar Brad King committed
    The `cmLocalGenerator::GetIncludeDirectoriesImplicit` method is called
    by `cmQtAutoGenInitializer` to get the compiler's list of implicit
    include directories.  Since commit 557b2d6e (Fix regression in
    -I/usr/include exclusion logic, 2019-02-13, v3.14.0-rc2~6^2~2) the
    method hard-codes exclusion of `/usr/include` for historical reasons.
    However, it should not be reported as a real implicit include directory
    unless the compiler really has it.
    
    Refactor the logic to distinguish the hard-coded exclusion of
    `/usr/include` from the real list of implicit include directories.
    
    Fixes: #19100
    a8b7cbb7