PARIS—French President Nicolas Sarkozy says his country will stick with the international campaign against Libya's longtime leader until the end.

Sarkozy said Friday that France's military effort—central to the nearly five-month-old NATO-led operation—"will remain constant."

He said there is no choice but to "go to the end of the mission."

The U.N.-mandated campaign against Moammar Gadhafi's forces has been deadlocked for long periods, and public support for the costly mission has waned.

Sarkozy was speaking to forces aboard the Charles de Gaulle aircraft carrier, which was operating off the Libyan coast for months and was crucial to the NATO campaign. The carrier is returning to port in Toulon on the Mediterranean for maintenance.