CBS Entertainment President Glenn Geller revealed that “Supergirl” had been a success for the network despite the show’s recent move to The CW for its second-season run.

“I wouldn’t say ‘Supergirl’ didn’t work for us,” Geller told reporters (via TheWrap) after his panel at the Television Critics Association’s summer press tour on Wednesday, Aug. 10. “It actually worked very well. It averaged over 10 million viewers per episode.”

So why move the Melissa Benoist-led series to its sister website CW? “At the end of the day, we looked at the situation and said, ‘How can we both win from this?’” Geller said.  “We co-own the CW, so this was an opportunity for both CBS and Warner Bros. to really benefit from the success of the show; they produce it and we co-own the network.”

When it was announced that “Supergirl” had been renewed for season 2 at the CW in May, the common notion was that CBS had no plans to order another installment of the show. But that’s actually not the case, according to Geller.

“There’s nothing to say that, if we hadn’t made the right deal with CW, we wouldn’t have put it back on Monday nights,” said the CBS exec, who added that the network is still open to other superhero shows in the future.

“If we heard the right superhero pitch, we would absolutely buy it,” TVLine quoted him as saying.

Although production for “Supergirl” season 2 was moved to Vancouver, cast members are positive that the show’s move to The CW would bring good changes to the series.

"It's better than season 1," David Harewood, who plays Hank/J'onn J'onzz, told Yahoo TV at the 2016 San Diego Comic-Con last month. "I think, It's gonna be much better, more exciting, [because people at The CW] understand the mythology. They understand the world. So we're really excited we're on The CW."

"[Season 2 is] going to be a little more focus," added Jeremy Jordan, who portrays Winn. "We're catering to a much larger audience on CBS, but here [on The CW], we know exactly what we'll be doing and ... who are real fans are."

"Supergirl" season 2 premieres on Monday, Oct. 10 at 8 p.m. on The CW.

Melissa Benoist as Supergirl and Tyler Hoechlin as Superman CBS entertainment president Glenn Geller revealed that "Supergirl" might have stayed at the network if the deal with The CW had not worked out. Photo: The CW