diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2018-08-23 12:15:09 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2018-08-27 11:16:41 +0300 |
commit | 854805140f0a9a50f8c8b727f0f25cdfe52da73b (patch) | |
tree | a10fa3ffd14bc354adbdd39a9c889ba0d69a8073 /cmake/mason.cmake | |
parent | d297bf10ef89e97da30e1a00dd49560e18bcb3f0 (diff) | |
download | qtlocation-mapboxgl-854805140f0a9a50f8c8b727f0f25cdfe52da73b.tar.gz |
[build] add script to generate a standalone version of Mapbox GLupstream/standalone-build-script
Diffstat (limited to 'cmake/mason.cmake')
-rw-r--r-- | cmake/mason.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/mason.cmake b/cmake/mason.cmake index 76d02b95b5..c0795d962c 100644 --- a/cmake/mason.cmake +++ b/cmake/mason.cmake @@ -208,8 +208,8 @@ endif() mason_detect_platform() -# Execute commands if CMake is run in command mode -if (CMAKE_ARGC) +# Execute commands if CMake is run in command mode\ +if (CMAKE_ARGC AND "${CMAKE_SCRIPT_MODE_FILE}" STREQUAL "${CMAKE_CURRENT_LIST_DIR}/mason.cmake") # Collect remaining arguments for passing to mason_use set(_MASON_ARGS) foreach(I RANGE 4 ${CMAKE_ARGC}) |