Topological superconducting transition driven by time-reversal-symmetry breaking