Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.2.1, 5.3.0 Alpha
-
Linux, CMake 2.8.12.2
-
67aa365d41ebfe082b4efcfd725e4d5f08be678c
Description
With Qt-5.2.1 (or 5.3.0-alpha) Qt's cmake config files don't seem to be able to find private headers. Qt5GuiConfig.cmake looks like below, for example:
set(_Qt5Gui_OWN_INCLUDE_DIRS "${_qt5Gui_install_prefix}/include/qt5/" "${_qt5Gui_install_prefix}/include/qt5/QtGui") set(Qt5Gui_PRIVATE_INCLUDE_DIRS "") include("${CMAKE_CURRENT_LIST_DIR}/ExtraSourceIncludes.cmake" OPTIONAL)
The problem with that seems to be that there is no ExtraSourceIncludes.cmake installed anywhere, except as /usr/share/qt5/mkspecs/features/data/cmake/ExtraSourceIncludes.cmake.in
When I install Qt from the current stable branch I get the following file which finds the private headers (tested with KF5GuiAddons):
set(_Qt5Gui_OWN_INCLUDE_DIRS "${_qt5Gui_install_prefix}/include/qt5/" "${_qt5Gui_install_prefix}/include/qt5/QtGui") set(Qt5Gui_PRIVATE_INCLUDE_DIRS "${_qt5Gui_install_prefix}/include/qt5/QtGui/5.3.0" "${_qt5Gui_install_prefix}/include/qt5/QtGui/5.3.0/QtGui" )
I'm not sure how those files are generated so i have to ask is this bug or am I doing something wrong?
Attachments
Issue Links
- is duplicated by
-
QTBUG-37297 PRIVATE_INCLUDE_DIRS not populated in release shadow build
- Closed