From eb281bcd686f2393af6a7d5238368f6aa15fa745 Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Sun, 3 Feb 2019 21:12:24 +0100 Subject: [PATCH] Fix cross-compilation --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index a94195ddc..30155d8e4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()