> So, if you compiled to C:\Qt\4.5.1 then you have a couple of options:
>
> set QTDIR to C:\Qt\4.5.1 in the environment variables.
>
> OR
>
> find_package(Qt4 PATHS "C:/Qt/4/.5.1") like Pau suggested.
>
> If you don't like the version number on there then recompile Qt 4.5.1 so
> that it has a path of C:\Qt and NOT C:\Qt\4.5.1
>

I just let cmake-gui try to find it and when it fails I manually set
the location of the qmake executable. This way I can have more than 1
Qt version installed and I do not have to play with environment
variables to switch between versions. After telling cmake-gui where
qmake.exe is for a project it will never ask me again unless I clear
the cache. I guess I could create a batch file that launches cmake-gui
with a different environment to do this but its not like I do this
ever day..

John
_______________________________________________
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

Reply via email to