[CMake] Qt find package location

Alexander Neundorf a.neundorf-work at gmx.net
Wed Mar 11 15:49:43 EDT 2009


On Wednesday 11 March 2009, Boudewijn Rempt wrote:
> On Wed, 11 Mar 2009, Doug Henry wrote:
> > I have multiple Qt installations and would like to know how I guide the
> > find_package(Qt4) command to find the correct one.  I assume there is a
> > variable I can set which defines the search path, which will allow me to
> > change the path to find a different installed version.  Thanks.
>
> Afaik, that uses the location of the first qmake it finds on the path

Yes, and you can also set CMAKE_PREFIX_PATH to point to your Qt installation.

Alex


More information about the CMake mailing list