diff options
author | Thiago Marcos P. Santos <thiago@mapbox.com> | 2016-07-18 14:44:41 +0300 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2016-08-05 11:42:22 +0200 |
commit | 821e58fdc1a21598e26dda542476ea530ac3c275 (patch) | |
tree | 9b969864e8f6eb598f133abd2bbb2fe1674f49e8 /cmake | |
parent | 4e5fc0d7a4cbb85e9e43f5cac958ef132512c413 (diff) | |
download | qtlocation-mapboxgl-821e58fdc1a21598e26dda542476ea530ac3c275.tar.gz |
[build] Build Qt with CMake
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/mbgl.cmake | 8 |
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. |