summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorJuha Alanen <juha.alanen@mapbox.com>2020-03-27 12:53:27 +0200
committerJuha Alanen <juha.alanen@mapbox.com>2020-03-27 17:57:28 +0200
commit488e5508959573b4b84a4f03afc7589503cd0af1 (patch)
tree1bea535c63c2928e32f102504bb7b8432414bff8 /platform
parent7cf5350e3cd64323370cae27367292eea6f97ba9 (diff)
downloadqtlocation-mapboxgl-488e5508959573b4b84a4f03afc7589503cd0af1.tar.gz
[build] Enable ccache for iOS CI builds
Now ccache can be optionally enabled. Enable it for CI builds. By default it is disabled due to issues in some environments.
Diffstat (limited to 'platform')
-rw-r--r--platform/ios/ios.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/platform/ios/ios.cmake b/platform/ios/ios.cmake
index 8b5696e481..984b15840f 100644
--- a/platform/ios/ios.cmake
+++ b/platform/ios/ios.cmake
@@ -1,3 +1,5 @@
+option(MBGL_WITH_IOS_CCACHE "Enable ccache for iOS" OFF)
+
if(NOT DEFINED IOS_DEPLOYMENT_TARGET)
set(IOS_DEPLOYMENT_TARGET "9.0")
endif()
@@ -73,7 +75,9 @@ target_include_directories(
)
include(${PROJECT_SOURCE_DIR}/vendor/icu.cmake)
-# include(${PROJECT_SOURCE_DIR}/platform/ios/ccache.cmake)
+if(MBGL_WITH_IOS_CCACHE)
+ include(${PROJECT_SOURCE_DIR}/platform/ios/ccache.cmake)
+endif()
if(MBGL_WITH_OPENGL)
include(${PROJECT_SOURCE_DIR}/platform/ios/ios-test-runners.cmake)
endif()