From 7e6dba3b7abc3d3246887909c2c398f65bd1fd7a Mon Sep 17 00:00:00 2001 From: "gregory.hainaut" Date: Thu, 15 Jul 2010 22:24:35 +0000 Subject: [PATCH] [cmake] Add a fatal error for pure amd64 distributions. git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3499 96395faa-99c1-11dd-bbfe-3dabce05a288 --- CMakeLists.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4182f0342d..2225d7fc34 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,6 +7,19 @@ cmake_minimum_required(VERSION 2.6) # Variable to check that people use the good file set(TOP_CMAKE_WAS_SOURCED TRUE) +# Print a clear message that 64bits is not supported +# It would avoid compilation failure later. +if(CMAKE_SIZEOF_VOID_P MATCHES "8") + message(FATAL_ERROR " + PCSX2 does not support 64bits environment. Please install a 32bits chroot or a 32bits OS. + PCSX2 have neither no plan to support the 64bits architecture in the future. + It will need a complete rewrite of the core emulator and a lots of time + + However when linux distribution will support properly multi-arch package, it will + be at least possible to easily compile and install PCSX2 witout too much hassle (the chroot environment)") +endif(CMAKE_SIZEOF_VOID_P MATCHES "8") + + # set module path set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)