Browse Source

Add MEGA_ARCH.

rude 12 years ago
parent
commit
9fbc1cbfc7
1 changed files with 8 additions and 0 deletions
  1. 8 0
      CMakeLists.txt

+ 8 - 0
CMakeLists.txt

@@ -7,6 +7,14 @@ cmake_minimum_required(VERSION 2.8)
 
 project(megasource)
 
+if(CMAKE_SIZEOF_VOID_P EQUAL 8)
+	set(MEGA_X64 TRUE)
+	set(MEGA_ARCH x64)
+else()
+	set(MEGA_X86 TRUE)
+	set(MEGA_ARCH x86)
+endif()
+
 if(MSVC)
 	set(CMAKE_SUPPRESS_REGENERATION TRUE)
 endif()