[cmake-developers] Qt 4 and 5 on the same system - qmake binary name priority

Stephen Kelly steveire at gmail.com
Fri Mar 15 07:57:51 EDT 2013


Marcus D. Hanwell wrote:

> On Mon, Mar 11, 2013 at 12:45 PM, Brad King
> <brad.king at kitware.com> wrote:
>> On 03/11/2013 12:34 PM, Clinton Stimpson wrote:
>>> I fixed a few bugs with that patch, and it is now merged with next.
>>
>> Great, thanks for taking care of this.
>>
> I verified that next finds the correct qmake for me too, thanks for
> getting this in for the next release!

For me it doesn't work. See below.

Thanks,

Steve.


 
$ cat ../CMakeLists.txt

find_package(Qt4 REQUIRED)

message("INCLUDES: ${QT_INCLUDES}")

add_executable(exe main.cpp)
$ qmake --version
QMake version 3.0
Using Qt version 5.1.0 in /home/stephen/dev/prefix/qtbase/lib
$ cmake ..
-- The C compiler identification is GNU 4.7.2
-- The CXX compiler identification is GNU 4.7.2
-- Check for working C compiler: /usr/lib/icecc/bin/cc
-- Check for working C compiler: /usr/lib/icecc/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/lib/icecc/bin/c++
-- Check for working CXX compiler: /usr/lib/icecc/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - not found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found
-- Found Qt4: /usr/bin/qmake-qt4 (found version "4.8.3") 
INCLUDES: 
/home/stephen/dev/prefix/qtbase/include/QtDesigner;/home/stephen/dev/prefix/qtbase/include/QtDeclarative;/home/stephen/dev/prefix/qtbase/include/QtScriptTools;/home/stephen/dev/prefix/qtbase/include/QtDBus;/home/stephen/dev/prefix/qtbase/include/QtDesigner;/home/stephen/dev/prefix/qtbase/include/QtXml;/home/stephen/dev/prefix/qtbase/include/QtSql;/home/stephen/dev/prefix/qtbase/include/QtOpenGL;/home/stephen/dev/prefix/qtbase/include/QtNetwork;/home/stephen/dev/prefix/qtbase/include/QtWebKit;/home/stephen/dev/prefix/qtbase/include/QtHelp;/home/stephen/dev/prefix/qtbase/include/QtUiTools;/home/stephen/dev/prefix/qtbase/include/QtTest;/home/stephen/dev/prefix/qtbase/include/QtScript;/home/stephen/dev/prefix/qtbase/include/QtSvg;/home/stephen/dev/prefix/qtbase/include/QtGui;/home/stephen/dev/prefix/qtbase/include/QtCore;/usr/share/qt4/mkspecs/default;/home/stephen/dev/prefix/qtbase/include;/home/stephen/dev/prefix/qtbase/include/QtCore
CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 2.8)

  should be added at the top of the file.  The version specified may be 
lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring done





More information about the cmake-developers mailing list