diff options
Diffstat (limited to 'cmake/core.cmake')
-rw-r--r-- | cmake/core.cmake | 7 |
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 |