[build] Do not redefine MASON_PLATFORM

This commit is contained in:
Thiago Marcos P. Santos
2016-07-18 16:00:57 +03:00
committed by Konstantin Käfer
parent 692fe1f3ff
commit 4e5fc0d7a4

View File

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