From 11ca1316077f8520508b39897a9e70b15214d2ed Mon Sep 17 00:00:00 2001 From: Andreas Schroeder Date: Wed, 30 Apr 2014 00:58:57 +0200 Subject: [PATCH] detect Mac OSX and Windows, fall back to Linux --- rpcs3/CMakeLists.txt | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/rpcs3/CMakeLists.txt b/rpcs3/CMakeLists.txt index b928cf46e2..7ad4795be7 100644 --- a/rpcs3/CMakeLists.txt +++ b/rpcs3/CMakeLists.txt @@ -42,16 +42,20 @@ find_package(OpenAL REQUIRED) include("${wxWidgets_USE_FILE}") if(CMAKE_SIZEOF_VOID_P EQUAL 8) - if(LINUX) - set(PLATFORM_ARCH "linux/x86_64") - elseif(APPLE) + if(APPLE) set(PLATFORM_ARCH "macosx/x86_64") + elseif(WIN32) + set(PLATFORM_ARCH "Windows/x86_64") + else() + set(PLATFORM_ARCH "linux/x86_64") endif() else() - if(LINUX) - set(PLATFORM_ARCH "linux/x86") - elseif(APPLE) + if(APPLE) set(PLATFORM_ARCH "macosx/x86") + elseif(WIN32) + set(PLATFORM_ARCH "Windows/x86") + else() + set(PLATFORM_ARCH "linux/x86") endif() endif()