[Development] Strange behavior of cmake with Qt5.11.0

Kevin Funk kevin.funk at kdab.com
Wed May 9 16:56:29 CEST 2018


On Tuesday, 8 May 2018 15:36:21 CEST Oleg Shalnev wrote:
> Good day!
> Neither cmake, nor qtcreator can't normal work with Qt5.11.0
> Error processing cmake project file with error
> 
> > CMake Error at ______________/CMakeLists.txt:28 (qt5_use_modules):
> > Unknown CMake command "qt5_use_modules".

Heya,

The qt5_use_modules() function was deprecated since ages and finally got 
removed with Qt 5.11.0 [1]. But indeed, we're lacking a release note entry for 
that. Will add that.

See this StackOverflow questions for a solution & explanation:
  https://stackoverflow.com/questions/31172156/what-to-use-instead-of-qt5-use-modules

Or the first paragraph here from Qt's CMake manual:
  http://doc.qt.io/qt-5/cmake-manual.html

Regards,
Kevin


[1] https://bugreports.qt.io/browse/QTBUG-63519

 
> Linux __ 4.15.0-20-generic #21-Ubuntu SMP Tue Apr 24 06:16:15 UTC 2018
> x86_64 x86_64 x86_64 GNU/Linux
> cmake version 3.10.2
> Qt 5.11.0-RC
> 
> With Qt.5.10.1 All Ok
> Where can I read about this new cmake trick?
> 
> Thanks a lot


-- 
Kevin Funk | kevin.funk at kdab.com | Lead Sales Engineer
KDAB (Deutschland) GmbH, a KDAB Group company
Tel: +49-30-521325470
KDAB - The Qt, C++ and OpenGL Experts
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5322 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/development/attachments/20180509/486deedf/attachment.bin>


More information about the Development mailing list