Remove uneeded cmake commands in the macosx case