[CMake] find_package(Qt4): EXACT doesn't work

Andreas Pakulat apaku at gmx.de
Fri Jan 30 07:48:34 EST 2009


On 29.01.09 16:27:10, Tyler Roscoe wrote:
> Hey cmakers,
> 
> I think I've found a bug:

Not really :)
 
> [tylermr at alta:~/tmp/build]$ cat ../CMakeLists.txt
> cmake_minimum_required(VERSION 2.6)
> 
> find_package(Qt4 99999 EXACT REQUIRED)
> message("qt4_found is ${QT4_FOUND}")
> message("qt_use_file is ${QT_USE_FILE}")

The reason this doesn't work is that FindQt4 simply hasn't been changed to
work with the new cmake2.6 feature of specifying the version in the
find_package call. Hence it only supports setting a cmake variable
"QT_MIN_VERISON" before running find_package. This also doesn't support an
exact match, its just a minimum required.

Of course you may file an enhancement report to make FindQt4.cmake care for
the cmake-variables set when using the version argument for find_package.

Andreas

-- 
Are you making all this up as you go along?


More information about the CMake mailing list