There is no OUTPUT_FILE option for add_custom_command (it is an option for execute_process). Instead, redirect stdout to the output file. Change-Id: Ic649bc6c4f709c3c42166500a72fce5014690a47