Skip to content

Commit 109d2b6

Browse files
committed
Lower CMake version requirement
1 parent 0850646 commit 109d2b6

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

CMakeLists.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
1-
cmake_minimum_required(VERSION 3.6)
1+
cmake_minimum_required(VERSION 2.8)
22
project(server_modloader)
33

44
include(CMakePackageConfigHelpers)
55

6-
set(CMAKE_CXX_STANDARD 11)
6+
if (CMAKE_VERSION VERSION_LESS 3.0.0)
7+
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
8+
else()
9+
set(CMAKE_CXX_STANDARD 11)
10+
endif()
11+
712
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
813

914
set(MODLOADER_VERSION "Preview 1")

dep/funchook

0 commit comments

Comments
 (0)