Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
Set policies through CMake 3.9 to allow enabling IPO
Browse files Browse the repository at this point in the history
  • Loading branch information
JosiahWI authored Aug 21, 2021
1 parent 4ba0f8d commit 1aab3db
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 1aab3db

Please sign in to comment.