[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:
committed by
Thiago Marcos P. Santos
parent
eaf03f4103
commit
def6b63cf7
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user