The target generator does not compute ClOptions for custom targets, so we should not use them either. Fixes: #18377, #18485