[CMake] ERROR when trying to Configure CMake

Alexander Neundorf a.neundorf-work at gmx.net
Fri Aug 30 15:43:47 EDT 2013


On Friday 30 August 2013, Rikkin wrote:
> Hello,
> I'm getting an error when I try to Configure CMake. This is the error:
> 
> CMake Error at C:/Program Files (x86)/CMake
> 2.8/share/cmake-2.8/Modules/FindQt4.cmake:1382 (message):
>   Found unsuitable Qt version "" from NOTFOUND, this code requires Qt 4.x

This message looks a bit strange...

> Call Stack (most recent call first):
>   CMakeModules/ODQtUtils.cmake:32 (FIND_PACKAGE)
>   CMakeLists.txt:38 (OD_INIT_QT)
> 
> I do have a Qt version 4.x installed here. But the installer can't find it.
> 
> What I have to do?

For Qt, set the cmake variable QT_QMAKE_EXECUTABLE to the qmake.exe of teh Qt 
you want to use.

Or, as a more general solution, set the CMAKE_PREFIX_PATH environment variable 
so that it includes the base install directory of Qt.

Alex


More information about the CMake mailing list