forked from Mirrorlandia_minetest/irrlicht
Set policies through CMake 3.9 to allow enabling IPO
This commit is contained in:
parent
4ba0f8d100
commit
1aab3db68b
@ -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_VERSION_MAJOR}.${CMAKE_VERSION_MINOR})
|
||||
else()
|
||||
cmake_policy(VERSION 3.9)
|
||||
endif()
|
||||
|
||||
project(Irrlicht
|
||||
VERSION 1.9.0
|
||||
LANGUAGES CXX
|
||||
|
Loading…
Reference in New Issue
Block a user