summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <thiago@mapbox.com>2017-01-09 14:18:55 -0200
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2017-01-09 15:52:57 -0200
commitdef6b63cf7b960884f51b243f4a3fc9d0ab39c68 (patch)
tree0de088b0a1f510d54f26424e1b52a010ede966d0
parenteaf03f41037e6f77eb8b8868ec309fb6d37c5592 (diff)
downloadqtlocation-mapboxgl-def6b63cf7b960884f51b243f4a3fc9d0ab39c68.tar.gz
[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.
-rw-r--r--platform/qt/qt.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/qt/qt.cmake b/platform/qt/qt.cmake
index 2950e1fb15..3382a9ac6b 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
)