update for cmake switch (mapserver/mapserver#4617)