[Bug 870455] cmake FindQt4 cannot find MinGW qconfig.pri
bugzilla at redhat.com
bugzilla at redhat.com
Tue Oct 30 13:01:51 UTC 2012
https://bugzilla.redhat.com/show_bug.cgi?id=870455
--- Comment #6 from Marcin Wojdyr <wojdyr at gmail.com> ---
(In reply to comment #4)
> When using mingw32-cmake it seems to use qmake-qt4 from:
>
> QT_QMAKE_EXECUTABLE=/usr/i686-w64-mingw32/bin/qmake-qt4
I didn't know about mingw32-cmake, I just used plain cmake, like this:
cmake -D CMAKE_TOOLCHAIN_FILE=/usr/share/mingw/Toolchain-mingw32.cmake ..
It indeed works when calling through mingw32-cmake or when PATH is set as in
mingw32-cmake:
PATH=/usr/i686-w64-mingw32/bin:$PATH.
>
> Do you have a sample CMakeLists.txt for testing?
cmake_minimum_required(VERSION 2.8)
project(foo CXX)
set(CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_STATIC_LIBRARY_SUFFIX})
find_package(Qt4 REQUIRED QtCore QtGui)
include(${QT_USE_FILE})
message(STATUS "QT_QMAKE_EXECUTABLE='${QT_QMAKE_EXECUTABLE}'")
I think changing QT_BINARY_DIR (comment 5) doesn't affect qmake path.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the mingw
mailing list