cmTarget: pass candidate strings by const-ref

This avoids having to copy the `std::string` overload.
1 file changed