What is the version of the following sentence with correct punctuation?

Moritz Cantor was no relation to Georg Cantor who referred to him as his Namensvetter cousin by name only
Moritz Cantor was no relation to Georg Cantor who referred to him as his Namensvetter (cousin by name only).