[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cmake
Subject:    Re: [CMake] QT_IMPORTS_DIR when dit does not exist yet
From:       Andreas Pakulat <apaku () gmx ! de>
Date:       2012-01-18 17:17:43
Message-ID: 20120118171743.GA15956 () neo ! apaku ! dnsalias ! org
[Download RAW message or body]

On 18.01.12 16:06:28, Jonathan Riddell wrote:
> Some Ubuntu developers are having an issue where QT_IMPORTS_DIR is not defined when \
> that directory does not yet exist. 
> https://bugs.launchpad.net/ubuntu/+source/cmake/+bug/894805
> 
> I have worked around it with http://paste.kde.org/188366/ but I
> suspect I'm not understanding what that code does and it's not a
> proper fix.  Any thoughts on a better way?

Do you expect the imports directory to exist before being able to
install something there? If not then this is not fixable since its not
possible anymore to decide wether the cross-compile stuff applies or the
qmake-variable should be taken (see the foreach right below your patched
line). If imports is supposed to at least exist, then one could simply
iterate manually over all possible locations and take the first one for
which file(EXISTS) returns true.

That being said, one could argue that a Qt installation without at least
Qt/widgets is broken wrt. QML, so maybe the packages containing the
standard Qt qml files should actually be a required dependency for the
declarative module.

Andreas

--

Powered by www.kitware.com

Visit other Kitware open-source projects at \
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: \
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic