summaryrefslogtreecommitdiff
path: root/vendor/polylabel.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/polylabel.cmake')
-rw-r--r--vendor/polylabel.cmake10
1 files changed, 7 insertions, 3 deletions
diff --git a/vendor/polylabel.cmake b/vendor/polylabel.cmake
index d732723a89..5a930c9f6d 100644
--- a/vendor/polylabel.cmake
+++ b/vendor/polylabel.cmake
@@ -1,5 +1,9 @@
-add_library(polylabel INTERFACE)
+if(TARGET mbgl-vendor-polylabel)
+ return()
+endif()
-target_include_directories(polylabel SYSTEM INTERFACE
- ${CMAKE_SOURCE_DIR}/vendor/polylabel/include
+add_library(mbgl-vendor-polylabel INTERFACE)
+
+target_include_directories(mbgl-vendor-polylabel SYSTEM INTERFACE
+ ${CMAKE_CURRENT_LIST_DIR}/polylabel/include
)