From def6b63cf7b960884f51b243f4a3fc9d0ab39c68 Mon Sep 17 00:00:00 2001 From: "Thiago Marcos P. Santos" Date: Mon, 9 Jan 2017 14:18:55 -0200 Subject: [PATCH] [Qt] Fix cross compilation on OSX Use mason platform instead of CMake host, because the target won't always be the same arch as the host. --- platform/qt/qt.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/qt/qt.cmake b/platform/qt/qt.cmake index 2950e1fb1..3382a9ac6 100644 --- a/platform/qt/qt.cmake +++ b/platform/qt/qt.cmake @@ -80,7 +80,7 @@ else() endif() # OS specific configurations -if (CMAKE_HOST_SYSTEM_NAME STREQUAL "Darwin") +if (MASON_PLATFORM STREQUAL "osx" OR MASON_PLATFORM STREQUAL "ios") list(APPEND MBGL_QT_FILES PRIVATE platform/darwin/src/nsthread.mm )