fixed ARM arch test to prevent breaking on short arch strings

This commit is contained in:
Riccardo Spagni 2015-07-16 12:46:38 +02:00
parent a4254a48f1
commit 54c785d0bb
No known key found for this signature in database
GPG Key ID: 55432DF31CCD4FCD

View File

@ -46,6 +46,10 @@ function (die msg)
endfunction ()
if (NOT ${ARCH} STREQUAL "")
string(SUBSTRING ${ARCH} 0 3 IS_ARM)
string(TOLOWER ${IS_ARM} IS_ARM)
if (${IS_ARM} STREQUAL "arm")
string(SUBSTRING ${ARCH} 0 5 ARM_TEST)
string(TOLOWER ${ARM_TEST} ARM_TEST)
@ -60,6 +64,7 @@ if (NOT ${ARCH} STREQUAL "")
else()
set(ARM7 0)
endif()
endif()
endif()
if(WIN32 OR ARM7 OR ARM6)