Mon, Dec 2
Thanks, this one was on my list :)
It should not be necessary as per https://cmake.org/cmake/help/v3.12/command/add_custom_target.html:
If COMMAND specifies an executable target name (created by the add_executable() command) it will automatically be replaced by the location of the executable created at build time. If set, the CROSSCOMPILING_EMULATOR executable target property will also be prepended to the command to allow the executable to run on the host. **Additionally a target-level dependency will be added so that the executable target will be built before this custom target.**
Sun, Dec 1
Use absolute path
map the sanitization with cmake doc ( https://cmake.org/cmake/help/v3.10/policy/CMP0037.html ) and reduce verbosity.