cmake_minimum_required(VERSION 3.5)
+# Set policies up to 3.9 since we want to enable the IPO option
+if(${CMAKE_VERSION} VERSION_LESS 3.9)
+ cmake_policy(VERSION ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION})
+else()
+ cmake_policy(VERSION 3.9)
+endif()
+
project(Irrlicht
VERSION 1.9.0
LANGUAGES CXX