summaryrefslogtreecommitdiff
path: root/cmake/core.cmake
diff options
context:
space:
mode:
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 1b29b4fb08..ac92b4f22e 100644
--- a/cmake/core.cmake
+++ b/cmake/core.cmake
@@ -1,3 +1,5 @@
+add_vendor_target(optional INTERFACE)
+
# Modify cmake/core-files.txt to change the source files for this target.
load_sources_list(MBGL_CORE_FILES cmake/core-files.txt)
add_library(mbgl-core STATIC ${MBGL_CORE_FILES})
@@ -7,7 +9,10 @@ target_include_directories(mbgl-core
PRIVATE src
)
-target_link_libraries(mbgl-core PRIVATE codecvt)
+target_link_libraries(mbgl-core
+ PUBLIC optional
+ PRIVATE codecvt
+)
target_add_mason_package(mbgl-core PUBLIC geometry)
target_add_mason_package(mbgl-core PUBLIC variant)