summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <thiago@mapbox.com>2016-07-18 16:00:57 +0300
committerKonstantin Käfer <mail@kkaefer.com>2016-07-26 12:48:58 +0200
commit71ad88daa600d54c57cf4d6039bcbf3c523dd61e (patch)
tree9096f0be0e6ff56a96c41eac43dc406286094868
parente126e46d0dcd449638c792f213975a77109489ae (diff)
downloadqtlocation-mapboxgl-71ad88daa600d54c57cf4d6039bcbf3c523dd61e.tar.gz
[build] Do not redefine MASON_PLATFORM
-rw-r--r--cmake/mbgl.cmake10
1 files changed, 6 insertions, 4 deletions
diff --git a/cmake/mbgl.cmake b/cmake/mbgl.cmake
index 105c8822e9..a796a9b372 100644
--- a/cmake/mbgl.cmake
+++ b/cmake/mbgl.cmake
@@ -6,10 +6,12 @@ if (NOT DEFINED MBGL_PLATFORM)
endif()
endif()
-if(MBGL_PLATFORM STREQUAL "macos")
- set(ENV{MASON_PLATFORM} "osx")
-else()
- set(ENV{MASON_PLATFORM} ${MBGL_PLATFORM})
+if (NOT DEFINED ENV{MASON_PLATFORM})
+ if(MBGL_PLATFORM STREQUAL "macos")
+ set(ENV{MASON_PLATFORM} "osx")
+ else()
+ set(ENV{MASON_PLATFORM} ${MBGL_PLATFORM})
+ endif()
endif()
set(MBGL_GENERATED ${CMAKE_BINARY_DIR}/generated/${CMAKE_CFG_INTDIR})