Browse Source

Merged in TannerRogalsky/megasource_emscripten/cxx11 (pull request #7)

set cxx11 for all of megasource
Alex Szpakowski 8 years ago
parent
commit
7084f23939
1 changed files with 3 additions and 1 deletions
  1. 3 1
      CMakeLists.txt

+ 3 - 1
CMakeLists.txt

@@ -3,7 +3,7 @@ if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
 	message(FATAL_ERROR "Prevented in-tree build.")
 endif()
 
-cmake_minimum_required(VERSION 2.8.12)
+cmake_minimum_required(VERSION 3.1)
 
 include(ExternalProject)
 
@@ -11,6 +11,8 @@ project(megasource)
 
 set(MEGA TRUE)
 
+set (CMAKE_CXX_STANDARD 11)
+
 if(CMAKE_SIZEOF_VOID_P EQUAL 8)
 	set(MEGA_X64 TRUE)
 	set(MEGA_ARCH x64)