Fix bug with GenerateTriplet
This commit is contained in:
@@ -1,13 +1,13 @@
|
|||||||
function(GenerateTriplet OUTPUT_VARIABLE)
|
function(GenerateTriplet OUTPUT_VARIABLE)
|
||||||
# Determine system architecture
|
# Determine system architecture
|
||||||
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
|
if(CMAKE_SYSTEM_PROCESSOR MATCHES "^(arm|aarch)64$")
|
||||||
set(ARCH "x64")
|
|
||||||
elseif(CMAKE_SIZEOF_VOID_P EQUAL 4)
|
|
||||||
set(ARCH "x86")
|
|
||||||
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^(arm|aarch)64$")
|
|
||||||
set(ARCH "arm64")
|
set(ARCH "arm64")
|
||||||
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^(arm|aarch).*")
|
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^(arm|aarch).*")
|
||||||
set(ARCH "arm")
|
set(ARCH "arm")
|
||||||
|
elseif(CMAKE_SIZEOF_VOID_P EQUAL 8)
|
||||||
|
set(ARCH "x64")
|
||||||
|
elseif(CMAKE_SIZEOF_VOID_P EQUAL 4)
|
||||||
|
set(ARCH "x86")
|
||||||
else()
|
else()
|
||||||
message(FATAL_ERROR "Unsupported architecture")
|
message(FATAL_ERROR "Unsupported architecture")
|
||||||
return()
|
return()
|
||||||
|
|||||||
Reference in New Issue
Block a user