detect Mac OSX and Windows, fall back to Linux
This commit is contained in:
+10
-6
@@ -42,16 +42,20 @@ find_package(OpenAL REQUIRED)
|
|||||||
include("${wxWidgets_USE_FILE}")
|
include("${wxWidgets_USE_FILE}")
|
||||||
|
|
||||||
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
|
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
|
||||||
if(LINUX)
|
if(APPLE)
|
||||||
set(PLATFORM_ARCH "linux/x86_64")
|
|
||||||
elseif(APPLE)
|
|
||||||
set(PLATFORM_ARCH "macosx/x86_64")
|
set(PLATFORM_ARCH "macosx/x86_64")
|
||||||
|
elseif(WIN32)
|
||||||
|
set(PLATFORM_ARCH "Windows/x86_64")
|
||||||
|
else()
|
||||||
|
set(PLATFORM_ARCH "linux/x86_64")
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
if(LINUX)
|
if(APPLE)
|
||||||
set(PLATFORM_ARCH "linux/x86")
|
|
||||||
elseif(APPLE)
|
|
||||||
set(PLATFORM_ARCH "macosx/x86")
|
set(PLATFORM_ARCH "macosx/x86")
|
||||||
|
elseif(WIN32)
|
||||||
|
set(PLATFORM_ARCH "Windows/x86")
|
||||||
|
else()
|
||||||
|
set(PLATFORM_ARCH "linux/x86")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user