[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.
This commit is contained in:
Thiago Marcos P. Santos
2017-01-09 14:18:55 -02:00
committed by Thiago Marcos P. Santos
parent eaf03f4103
commit def6b63cf7

View File

@@ -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
)