execute_process() ignores imported targets
Unlike add_custom_command()
the execute_process()
function doesn't retrieve command locations from imported targets. So for instance add_custom_command(COMMAND Qt5::rcc ...)
generates a custom command which invokes Qt's rcc tool, while execute_process()
fails to expand Qt5:rcc
.
Expected behavior: execute_process(COMMAND Qt5::rcc ...)
runs Qt's rcc tool
Actual behavior: execute_process(COMMAND Qt5::rcc ...)
fails as there is no executable called Qt5::rcc
in PATH
.