Patch FindTQt.cmake to pre-define MOC_EXECUTABLE #28
Fermé
créé il y a 5 ans par Ray-V
·
5 commentaires
Chargement…
Référencer dans un nouveau ticket
Il n'existe pas encore de contenu.
Supprimer la branche '%!s(<nil>)'
Supprimer une branche est permanent. Cela NE PEUVENT être annulées. Continuer ?
When cross compiling on x86 for arm/aarch64 I use qemu/binfmt to run whatever arm binaries are needed during the build.
However, tqmoc produces arch independent output and so the x86 binary can be used, avoiding the overhead that qemu produces.
It's convenient to place the x86 binaries outside the TDE tree and be able to define where tqmoc can be found, so I use this patch in FindTQt.cmake:
and can then use with cmake, for example:
-D MOC_EXECUTABLE=/path/to/x86/tqmoc
Adding a condition seems like a good idea for all executables that is being searched here. This not only allows to specify paths as building parameters, but also prevents repeated searches in case of repeated building.
I added you to a team of contributors. Therefore, you can now create a pull request for your proposed patch – see TGW page on wiki.
Welcome Ray 😄
Note that you should make the variables
CACHE
d rather than adding the conditions. Thetde_execute_process()
already has a built-in support for that — just addCACHE
to it's arguments.Thank you @Fat-Zer, this is a very good reminder! Such a solution will be good and very clean.
Thank you for reporting – the issue has been resolved by #29.