Qt 6.5 cmake rebuilds qml files
-
Greetings
I have successfully migrated my qt 6.3 qml app to qt 6.5 (of course from qmake to cmake) ... but now the qml files are rebuilt even without
any changes made. The app has more than 700 qml files...this makes my buiding process to take a very long to complete (8 minutes for every build)The cmake file is a bit long.. but here is a snippet for the qml part
#read all qml files with relative path file(GLOB_RECURSE QML_FILES RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" CMAKE_CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/qml/*.qml") qt_add_qml_module (${GW_LIBRARY_NAME} URI GWriter QML_FILES ${QML_FILES} # qml files RESOURCES ${ASSETS_IMAGE_FILES} # holds the app images ${ICONS_FILES} # holds the icon files )
please help me ..what can i do.
-
Greetings
I have successfully migrated my qt 6.3 qml app to qt 6.5 (of course from qmake to cmake) ... but now the qml files are rebuilt even without
any changes made. The app has more than 700 qml files...this makes my buiding process to take a very long to complete (8 minutes for every build)The cmake file is a bit long.. but here is a snippet for the qml part
#read all qml files with relative path file(GLOB_RECURSE QML_FILES RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" CMAKE_CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/qml/*.qml") qt_add_qml_module (${GW_LIBRARY_NAME} URI GWriter QML_FILES ${QML_FILES} # qml files RESOURCES ${ASSETS_IMAGE_FILES} # holds the app images ${ICONS_FILES} # holds the icon files )
please help me ..what can i do.
Which CMake version are you using?
Also note that the parameter for
file(GLOB_RECURSE
) isCONFIGURE_DEPENDS
, see https://cmake.org/cmake/help/latest/command/file.html#glob-recurse -
That shouldn't happen. Consider creating a bug report. Or provide the information that's usually requested here. See https://wiki.qt.io/Qt_Build_System_Glossary#Reporting_build_system_issues for details.