[Development] qt-5.0.1 incorrect ..._install_prefix cmake vars ?

Rex Dieter rdieter at math.unl.edu
Sat Mar 30 16:41:40 CET 2013


Rex Dieter wrote:

> Stephen Kelly wrote:
> 
>> On Friday, March 29, 2013 10:33:01 Rex Dieter wrote:
>>> During packaging qt5 for fedora, someone noticed that cmake .config
>>> files
>>> seemingly set incorrect _install_prefix variables.  One example is in
>>> qtbase, cmake files installed (on x86_64) as:
>>> 
>>> /usr/lib64/cmake/Qt5Core/Qt5CoreConfig.cmake
>>> /usr/lib64/cmake/Qt5Core/Qt5CoreConfigExtras.cmake
>>> 
>>> contain:
>>> 
>>> get_filename_component(_qt5_corelib_install_prefix
>>> "${CMAKE_CURRENT_LIST_DIR}/" ABSOLUTE)
>>> 
>>> so ends up with:
>>> 
>>> _qt5_corelib_install_prefix = /usr/lib64/cmake/Qt5Core
>>> 
>>> which to my untrained eye looks very wrong, and of course, queries in
>>> those .cmake files to find qmake (and friends) will fail to find
>>> anything at _qt5_corelib_install_prefix/bin/qmake
>>> 
>>> 
>>> Is this a bug or am I missing something?
>>> 
>>> see also downstream bug, http://bugzilla.redhat.com/929227
>> 
>> Thanks for reporting. It looks like a bug alright.
>> 
>> Can you try the 5.0.2 rc or the release branch from git?
> 
> trying now, thanks.

Looks like 5.0.2 rc did the trick, Qt5CoreConfig.cmake now ends up with:

set(_qt5Core_install_prefix "/usr/lib64/qt5")

as I expect.

-- rex





More information about the Development mailing list