summaryrefslogtreecommitdiff
path: root/cmake/core.cmake
diff options
context:
space:
mode:
authorJuha Alanen <juha.alanen@mapbox.com>2019-06-03 15:34:13 +0300
committerJuha Alanen <juha.alanen@mapbox.com>2019-06-27 14:44:13 +0300
commit50bdbea570ad079490f160a189010271bd33bcb1 (patch)
tree8c7c54766537aaf1304fc121d2707e6de80b58b6 /cmake/core.cmake
parent98a5c64d34237e67d6f6e1b034b6e00c98096524 (diff)
downloadqtlocation-mapboxgl-50bdbea570ad079490f160a189010271bd33bcb1.tar.gz
[core] Add number-format expressionupstream/jmalanen-number-format
Diffstat (limited to 'cmake/core.cmake')
-rw-r--r--cmake/core.cmake7
1 files changed, 6 insertions, 1 deletions
diff --git a/cmake/core.cmake b/cmake/core.cmake
index 1971352c37..3278c4f7d3 100644
--- a/cmake/core.cmake
+++ b/cmake/core.cmake
@@ -19,13 +19,18 @@ target_link_libraries(mbgl-core PRIVATE
wagyu
)
+# linux uses ICU from mason, other platforms use vendored ICU
+if(NOT MBGL_PLATFORM STREQUAL "linux")
+ set(ICU_LIBRARY "icu")
+endif()
+
# FIXME: We should not leak these many
# libraries in our public interface.
target_link_libraries(mbgl-core PUBLIC
boost
geojson.hpp
geometry.hpp
- icu
+ ${ICU_LIBRARY}
optional
polylabel
protozero