Spontaneous symmetry breaking in a generalized orbital compass model