Details
-
Technical task
-
Resolution: Done
-
P2: Important
-
None
-
4ed6bed11c2f308b39bcf52435de446c90f80f8e (qt/qtdeclarative/dev) 17bea746b4f8215be03c15243a86301f77f782ab (qt/qtdeclarative/6.2)
Description
If we are trying to run qmllint on a qml file belonging to $backing_target and $backing_target is an executable, CMake should pass -I ${CMAKE_CURRENT_BINARY_DIR} of the executable to qmlint.
Same should be done for qmlcachegen and other tooling.
If we are trying to run qmllint on a qml file belonging to a library, not an executable, we need to use the backtracking algorithm that Ulf suggests.
i.e. Remove TARGET_PATH from the end of CMAKE_CURRENT_BINARY_DIR
Details in context link. Search for 'OPTION1_MARKER'.