CMake problem with Qt 6.10.0
-
CMake Error at /home/user/Qt/6.10.0/gcc_64/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake:1273 (add_custom_command): Error evaluating generator expression: $<TARGET_FILE:::qtpaths> No target "::qtpaths" Call Stack (most recent call first): /home/user/Qt/6.10.0/gcc_64/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake:1051:EVAL:1 (_qt_internal_write_deferred_qmlls_build_ini_file) CMakeLists.txt:DEFERRED
There is this line n the Cmake file
set(qtpaths $<TARGET_FILE:${QT_CMAKE_EXPORT_NAMESPACE}::qtpaths>)
somehowQT_CMAKE_EXPORT_NAMESPACE
is not defined. -
qtpaths
is an executable, not a CMake target.
I must admit, that I never use it. But from the top of my head, you have to write something like this instead:find_program(QTPATHS_EXEC qtpaths)
-
I think it's a bug in Qt CMake. Just in case someone wants to open a bug report.
-
-
I think it's a bug in Qt CMake. Just in case someone wants to open a bug report.
@EduardoQtDev said in CMake problem with Qt 6.10.0:
Just in case someone wants to open a bug report.
https://bugreports.qt.io/browse/QTBUG-137577 - Known, and already fixed it seems. You'll need to wait for beta2, or build from Git.