mirror of
https://github.com/love2d/megasource.git
synced 2026-08-21 13:10:24 +02:00
Merged in TannerRogalsky/megasource_emscripten/cxx11 (pull request #7)
set cxx11 for all of megasource
This commit is contained in:
+3
-1
@@ -3,7 +3,7 @@ if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
|
|||||||
message(FATAL_ERROR "Prevented in-tree build.")
|
message(FATAL_ERROR "Prevented in-tree build.")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 2.8.12)
|
cmake_minimum_required(VERSION 3.1)
|
||||||
|
|
||||||
include(ExternalProject)
|
include(ExternalProject)
|
||||||
|
|
||||||
@@ -11,6 +11,8 @@ project(megasource)
|
|||||||
|
|
||||||
set(MEGA TRUE)
|
set(MEGA TRUE)
|
||||||
|
|
||||||
|
set (CMAKE_CXX_STANDARD 11)
|
||||||
|
|
||||||
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
|
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
|
||||||
set(MEGA_X64 TRUE)
|
set(MEGA_X64 TRUE)
|
||||||
set(MEGA_ARCH x64)
|
set(MEGA_ARCH x64)
|
||||||
|
|||||||
Reference in New Issue
Block a user