summaryrefslogtreecommitdiffstats
path: root/Source/cmLinkLibrariesCommand.cxx
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2018-07-25 10:45:10 (GMT)
committerSebastian Holtermann <sebholt@xwmw.org>2018-07-25 10:45:10 (GMT)
commitb0b820ea39fe4edaf0672ba899a7042ef93a20d2 (patch)
treeb12251b7c61ebcd83ae060e58da6b0c0c40f54d2 /Source/cmLinkLibrariesCommand.cxx
parent1f36652ef4062d784620caa59e3ddd5de06cd976 (diff)
downloadCMake-b0b820ea39fe4edaf0672ba899a7042ef93a20d2.zip
CMake-b0b820ea39fe4edaf0672ba899a7042ef93a20d2.tar.gz
CMake-b0b820ea39fe4edaf0672ba899a7042ef93a20d2.tar.bz2
cmLocalGenerator: Extend the functionality of ``GetIncludeDirectories()``
What ``cmLocalGenerator::GetIncludeDirectories`` does ----------------------------------------------------- In general it concatenates the 1. ``target->GetIncludeDirectories(LANG)`` and the 2. ``CMAKE_<LANG>_STANDARD_INCLUDE_DIRECTORIES``. Additionally it performs some sorting and special treatment of the - ``CMAKE_<LANG>_IMPLICIT_INCLUDE_DIRECTORIES``. By default all ``CMAKE_<LANG>_IMPLICIT_INCLUDE_DIRECTORIES`` are stripped from the result list. When explicitly requested (by setting ``stripImplicitInclDirs=false``) *some* implicit directories are appended to the result list. The implicit directories that *are* appended are those that were requested to be included by 1. ``target->GetIncludeDirectories(LANG)`` or 2. ``CMAKE_<LANG>_STANDARD_INCLUDE_DIRECTORIES``. All other implicit directories are still stripped from the result list. The reason to not simply append all implicit directories is that Qt4's moc has problems to parse some headers that might be found in the implicit system include directories (See commit d2536579d51e77827b8e55f39123316324314781 and [QTBUG-28045](https://bugreports.qt.io/browse/QTBUG-28045) ). That has been solved in Qt5's moc though. Extension request to ``cmLocalGenerator::GetIncludeDirectories`` ---------------------------------------------------------------- For Qt5's moc we like to have an option that allows to append *all* implict include directories to the result list, not just those that were user requested. Changes to ``cmLocalGenerator::GetIncludeDirectories`` ------------------------------------------------------ - Shorten the function parameter name ``stripImplicitInclDirs`` to ``stripImplicitDirs``. - Add new boolean function parameter ``appendAllImplicitDirs`` with a default value ``false``. The old default behavior of the function stays the same, but a specialized behavior can be requested by AUTOMOC for Qt4/Qt5 respectively.
Diffstat (limited to 'Source/cmLinkLibrariesCommand.cxx')
0 files changed, 0 insertions, 0 deletions