Details
-
Bug
-
Resolution: Done
-
P2: Important
-
Qt Creator 4.14.0
-
None
-
ArchLinux,
Opensource Qt v6.0.1 Installed via official installer.
QtCreator installed via pacman:
~ > pacman -Qi qtcreator
Name : qtcreator
Version : 4.14.0-3
-
-
f9a8e47d13b7fec4f26c9f641271843f9ca65394 (qt-creator/qt-creator/5.0)
Description
QtCreator automatically adds a "prepare_apk_dir" after the default "all" target:
https://github.com/qt-creator/qt-creator/blob/master/src/plugins/cmakeprojectmanager/cmakebuildstep.cpp#L476-L501
However this fails on a project where a non-executable library is "alphabetically" before the "real executable" target.
add_library( TARGET_A SHARED main.cpp) qt6_add_executable( TARGET_B main.cpp)
It should use the "TARGET_B_prepare_apk_dir" instead of "TARGET_A_prepare_apk_dir", since TARGET_A is a library, it does not have the "*_prepare_apk_dir" target.