diff options
author | Alex Neundorf <neundorf@kde.org> | 2012-11-19 20:47:20 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2012-11-20 16:46:28 (GMT) |
commit | d2536579d51e77827b8e55f39123316324314781 (patch) | |
tree | d3b8a2ba44a11f22587cf649ce82945b2f2aecf8 /Tests/bootstrap.bat.in | |
parent | f058b275477905545fbfd4228c079d91a047bc0f (diff) | |
download | CMake-d2536579d51e77827b8e55f39123316324314781.zip CMake-d2536579d51e77827b8e55f39123316324314781.tar.gz CMake-d2536579d51e77827b8e55f39123316324314781.tar.bz2 |
Automoc: fix regression #13667, broken build in phonon
On some systems, ${QT_INCLUDE_DIR} is reported by gcc as a builtin
include search dir. Some projects use this information to extend
CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES.
In cmake 2.8.10 now the targets are queried for the include directories
they use. When they return the result, the include dirs contained in
CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES have been removed.
In cmake 2.8.9 and below the INCLUDE_DIRECTORIES directory property
was queried, where this had not been stripped.
So, in those projects which modify the implicit include dirs variable,
on systems where ${QT_INCLUDE_DIR} is reported by gcc, this directory,
e.g. /usr/lib/include/qt/, was not given anymore to moc. This made moc
not find required headers, so the build broke.
Simply giving the full CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES to moc
is no solution either, since moc can't handle some of the headers it
finds then (https://bugreports.qt-project.org/browse/QTBUG-28045).
So now cmake checks CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES, and if this
contains ${QT_INCLUDE_DIR}, and the target reports that it uses
${QT_QTCORE_INCLUDE_DIR} but not ${QT_INCLUDE_DIR}, ${QT_INCLUDE_DIR}
is added to the include dirs given to moc.
Alex
Diffstat (limited to 'Tests/bootstrap.bat.in')
0 files changed, 0 insertions, 0 deletions