Fix string comparison in cmake