summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake')
-rw-r--r--cmake/mbgl.cmake8
1 files changed, 6 insertions, 2 deletions
diff --git a/cmake/mbgl.cmake b/cmake/mbgl.cmake
index a796a9b372..317057a406 100644
--- a/cmake/mbgl.cmake
+++ b/cmake/mbgl.cmake
@@ -7,13 +7,17 @@ if (NOT DEFINED MBGL_PLATFORM)
endif()
if (NOT DEFINED ENV{MASON_PLATFORM})
- if(MBGL_PLATFORM STREQUAL "macos")
- set(ENV{MASON_PLATFORM} "osx")
+ if(MBGL_PLATFORM STREQUAL "qt")
+ set(ENV{MASON_PLATFORM} ${BUILD_PLATFORM})
else()
set(ENV{MASON_PLATFORM} ${MBGL_PLATFORM})
endif()
endif()
+if ("$ENV{MASON_PLATFORM}" STREQUAL "macos")
+ set(ENV{MASON_PLATFORM} "osx")
+endif()
+
set(MBGL_GENERATED ${CMAKE_BINARY_DIR}/generated/${CMAKE_CFG_INTDIR})
# Generate source groups so the files are properly sorted in IDEs like Xcode.