]> git.lizzy.rs Git - irrlicht.git/blobdiff - CMakeLists.txt
Add MSVC CI build (#26)
[irrlicht.git] / CMakeLists.txt
index 6552ef70cc64cd508da54dc5c9165fe79dcc0b68..2ecb9f7d373a9f30c3b556c3d04f982020091ee2 100644 (file)
@@ -1,5 +1,12 @@
 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