Fix cross-compilation

This commit is contained in:
Carles Fernandez 2019-02-03 21:12:24 +01:00
parent d4da5d2879
commit eb281bcd68
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D
1 changed files with 3 additions and 0 deletions

View File

@ -413,6 +413,9 @@ endif()
if(NOT OS_IS_MACOSX)
if(CMAKE_CROSSCOMPILING)
set(IS_ARM TRUE)
if(NOT CMAKE_NO_SYSTEM_FROM_IMPORTED)
set(CMAKE_NO_SYSTEM_FROM_IMPORTED TRUE)
endif()
else()
include(TestForARM)
endif()