[CMake] Trouble with non standard Qt installation.
John Drescher
drescherjm at gmail.com
Mon Nov 29 13:42:03 EST 2010
On Mon, Nov 29, 2010 at 1:35 PM, tibur <tiburtibur at gmail.com> wrote:
> Hello.
>
> Our team uses the same Windows (VS) Qt build, but all the developers don't
> store it at the same place on their hard drive. So qmake.exe doesn't contain
> the good include, library, ... directories.
>
> On the FindQt4.cmake script of version 2.8.2 (line 770), the find_library
> call was using QT_LIBRARY_DIR variable to find the possible location of
> QtCore.lib, ...
>
> But on version 2.8.3, this module now queries qmake.exe to retrieve the
> library and includes path. This stuck us to the 2.8.2 version of CMake,
> since qmake doesn't return the good directories.
>
> How can we fix that?
>
I am confused on what you are trying to fix. I mean on windows CMake
rarely finds anything (since there is no standard path for libraries
or development) unless it was one of the recent applications you built
with CMake. However when it does not find a library, package ... just
setting a variable to appropriate directory in CMakeGUI fixes the
problem.
John
More information about the CMake
mailing list