summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2017-03-28 20:48:48 +0200
committerKonstantin Käfer <mail@kkaefer.com>2017-03-28 21:24:12 +0200
commitc86b492bf7df62f8c09ec565b7ccfb4cd2bfcc79 (patch)
tree347e72a74742cb4f2663c62db4f658c2c8b44d60
parentb3ffeceb9e0077fc81330a411a2ae1b590ec8dd6 (diff)
downloadqtlocation-mapboxgl-c86b492bf7df62f8c09ec565b7ccfb4cd2bfcc79.tar.gz
[build] don't advertise headers that aren't used in public headers
-rw-r--r--cmake/core.cmake2
-rw-r--r--cmake/loop-darwin.cmake2
-rw-r--r--cmake/loop-uv.cmake2
-rw-r--r--platform/android/config.cmake2
-rw-r--r--platform/ios/config.cmake2
-rw-r--r--platform/linux/config.cmake2
-rw-r--r--platform/macos/config.cmake2
7 files changed, 7 insertions, 7 deletions
diff --git a/cmake/core.cmake b/cmake/core.cmake
index a687b020dc..78800a4838 100644
--- a/cmake/core.cmake
+++ b/cmake/core.cmake
@@ -14,7 +14,7 @@ target_include_directories(mbgl-core
target_add_mason_package(mbgl-core PUBLIC geometry)
target_add_mason_package(mbgl-core PUBLIC variant)
-target_add_mason_package(mbgl-core PUBLIC unique_resource)
+target_add_mason_package(mbgl-core PRIVATE unique_resource)
target_add_mason_package(mbgl-core PRIVATE rapidjson)
target_add_mason_package(mbgl-core PRIVATE boost)
target_add_mason_package(mbgl-core PRIVATE geojson)
diff --git a/cmake/loop-darwin.cmake b/cmake/loop-darwin.cmake
index 91fb74e00e..c16d0de3ac 100644
--- a/cmake/loop-darwin.cmake
+++ b/cmake/loop-darwin.cmake
@@ -12,7 +12,7 @@ target_compile_options(mbgl-loop-darwin
)
target_include_directories(mbgl-loop-darwin
- PUBLIC include
+ PRIVATE include
PRIVATE src
)
diff --git a/cmake/loop-uv.cmake b/cmake/loop-uv.cmake
index 9844daf205..b7757c719a 100644
--- a/cmake/loop-uv.cmake
+++ b/cmake/loop-uv.cmake
@@ -10,7 +10,7 @@ target_compile_options(mbgl-loop-uv
)
target_include_directories(mbgl-loop-uv
- PUBLIC include
+ PRIVATE include
PRIVATE src
)
diff --git a/platform/android/config.cmake b/platform/android/config.cmake
index 8a590b1f20..1a878c984e 100644
--- a/platform/android/config.cmake
+++ b/platform/android/config.cmake
@@ -80,7 +80,7 @@ macro(mbgl_platform_core)
target_add_mason_package(mbgl-core PUBLIC geojson)
target_add_mason_package(mbgl-core PUBLIC jni.hpp)
target_add_mason_package(mbgl-core PUBLIC rapidjson)
- target_add_mason_package(mbgl-core PUBLIC icu)
+ target_add_mason_package(mbgl-core PRIVATE icu)
target_compile_options(mbgl-core
PRIVATE -fvisibility=hidden
diff --git a/platform/ios/config.cmake b/platform/ios/config.cmake
index cab8fd1357..92b6736349 100644
--- a/platform/ios/config.cmake
+++ b/platform/ios/config.cmake
@@ -65,7 +65,7 @@ macro(mbgl_platform_core)
)
target_add_mason_package(mbgl-core PUBLIC geojson)
- target_add_mason_package(mbgl-core PUBLIC icu)
+ target_add_mason_package(mbgl-core PRIVATE icu)
target_compile_options(mbgl-core
PRIVATE -fobjc-arc
diff --git a/platform/linux/config.cmake b/platform/linux/config.cmake
index 97928a0e93..90b14a862d 100644
--- a/platform/linux/config.cmake
+++ b/platform/linux/config.cmake
@@ -99,7 +99,7 @@ macro(mbgl_platform_core)
target_add_mason_package(mbgl-core PUBLIC libpng)
target_add_mason_package(mbgl-core PUBLIC libjpeg-turbo)
target_add_mason_package(mbgl-core PUBLIC webp)
- target_add_mason_package(mbgl-core PUBLIC icu)
+ target_add_mason_package(mbgl-core PRIVATE icu)
target_link_libraries(mbgl-core
PUBLIC -lz
diff --git a/platform/macos/config.cmake b/platform/macos/config.cmake
index 0dc9141114..7a179b8218 100644
--- a/platform/macos/config.cmake
+++ b/platform/macos/config.cmake
@@ -61,7 +61,7 @@ macro(mbgl_platform_core)
)
target_add_mason_package(mbgl-core PUBLIC geojson)
- target_add_mason_package(mbgl-core PUBLIC icu)
+ target_add_mason_package(mbgl-core PRIVATE icu)
target_compile_options(mbgl-core
PRIVATE -fobjc-arc