Does the patch need to happen after configure? Otherwise move patch command to PATCH_COMMAND line of external_project_add command.