"Haftar ignores the peace efforts made in Moscow and Berlin", Erdogan told reporters before flying to Algeria for a state visit.
Erdogan also blasted Syrian President Bashar Assad for breaking agreements on Idlib.
Libya is currently divided between two centres of power — an elected parliament in the country's east, supported by Haftar's Libyan National Army, and the UN-recognized Government of National Accord in the west.
On 19 January, participants of the Berlin conference on Libya called on the United Nations to facilitate ceasefire talks and urged the Security Council to impose sanctions on those who would breach the truce agreement.
The situation in the province of Idlib — the last stronghold of militants in Syria — has escalated since 19 December when the Syrian army launched a new military operation in the area.
On 9 January, the ceasefire, which was agreed by Russia and Turkey, entered into force. However, militants continue to attack the Syrian army and civilians despite the truce.