[cmake/config] make griddim a cached var (again?)