Make cmake files more portable