mirror of
https://github.com/PabloMK7/citra
synced 2024-11-15 05:08:23 +00:00
CMake: Inform the user when architecture auto-detection fails
This commit is contained in:
parent
555c82739e
commit
8c39324333
1 changed files with 8 additions and 2 deletions
|
@ -66,8 +66,11 @@ if (ENABLE_GLFW)
|
||||||
if (MSVC)
|
if (MSVC)
|
||||||
if (CMAKE_SIZEOF_VOID_P EQUAL 8)
|
if (CMAKE_SIZEOF_VOID_P EQUAL 8)
|
||||||
set(TMP_ARCH "x64")
|
set(TMP_ARCH "x64")
|
||||||
else()
|
elseif (CMAKE_SIZEOF_VOID_P EQUAL 4)
|
||||||
set(TMP_ARCH "Win32")
|
set(TMP_ARCH "Win32")
|
||||||
|
else()
|
||||||
|
set(TMP_ARCH "UNKNOWN")
|
||||||
|
message(SEND_ERROR "Couldn't detect your compiler's architecture, you'll have to manually specify the GLFW library to use. (Try checking CMakeOutput.log to find out why.)")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (MSVC11) # Visual C++ 2012
|
if (MSVC11) # Visual C++ 2012
|
||||||
|
@ -84,8 +87,11 @@ if (ENABLE_GLFW)
|
||||||
# Assume mingw
|
# Assume mingw
|
||||||
if (CMAKE_SIZEOF_VOID_P EQUAL 8)
|
if (CMAKE_SIZEOF_VOID_P EQUAL 8)
|
||||||
set(TMP_ARCH "x86_64")
|
set(TMP_ARCH "x86_64")
|
||||||
else()
|
elseif (CMAKE_SIZEOF_VOID_P EQUAL 4)
|
||||||
set(TMP_ARCH "i686")
|
set(TMP_ARCH "i686")
|
||||||
|
else()
|
||||||
|
set(TMP_ARCH "UNKNOWN")
|
||||||
|
message(SEND_ERROR "Couldn't detect your compiler's architecture, you'll have to manually specify the GLFW library to use.")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(TMP_TOOLSET "mingw-${TMP_ARCH}")
|
set(TMP_TOOLSET "mingw-${TMP_ARCH}")
|
||||||
|
|
Loading…
Reference in a new issue