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

Set policies through version 3.9 to allow better IPO support #57

Merged
merged 3 commits into from
Aug 21, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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()
sfan5 marked this conversation as resolved.
Show resolved Hide resolved

project(Irrlicht
VERSION 1.9.0
LANGUAGES CXX
Expand Down