1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-06 02:15:32 +00:00

CMakeLists.txt: Restore policies as we unbumped cmake version

This commit is contained in:
Gleb Mazovetskiy 2021-01-20 22:32:40 +00:00
parent 4dc0fd299f
commit 26814b2386

View file

@ -1,8 +1,18 @@
project(OpenMW)
cmake_minimum_required(VERSION 3.1.0) # CMP0083 NEW
cmake_minimum_required(VERSION 3.1.0)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# for link time optimization, remove if cmake version is >= 3.9
if(POLICY CMP0069) # LTO
cmake_policy(SET CMP0069 NEW)
endif()
# for position-independent executable, remove if cmake version is >= 3.14
if(POLICY CMP0083)
cmake_policy(SET CMP0083 NEW)
endif()
# Detect OS
include(cmake/OSIdentity.cmake)