mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 03:25:16 +00:00
detect Mac OSX and Windows, fall back to Linux
This commit is contained in:
parent
ebe20a0825
commit
11ca131607
1 changed files with 10 additions and 6 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue