summaryrefslogtreecommitdiff
path: root/vendor/expected.cmake
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2019-07-23 17:35:43 +0300
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2019-09-05 13:29:00 +0300
commit70827797f0c6901b341b036c15a7f99fe99a2db7 (patch)
treef4a01f93e3f2d3bb0dc4dc897ecfdf13bf6737eb /vendor/expected.cmake
parentf53143f1a1018050a2104f9afd929c963951527d (diff)
downloadqtlocation-mapboxgl-70827797f0c6901b341b036c15a7f99fe99a2db7.tar.gz
[build] Cosmetics on vendor packages
- Add include guards on all the files - Add a vendor package for sqlite and gtest - Use relative paths to all the files
Diffstat (limited to 'vendor/expected.cmake')
-rw-r--r--vendor/expected.cmake10
1 files changed, 7 insertions, 3 deletions
diff --git a/vendor/expected.cmake b/vendor/expected.cmake
index ebe63e1a10..f87f057386 100644
--- a/vendor/expected.cmake
+++ b/vendor/expected.cmake
@@ -1,5 +1,9 @@
-add_library(expected INTERFACE)
+if(TARGET mbgl-vendor-expected)
+ return()
+endif()
-target_include_directories(expected SYSTEM INTERFACE
- ${CMAKE_SOURCE_DIR}/vendor/expected/include
+add_library(mbgl-vendor-expected INTERFACE)
+
+target_include_directories(mbgl-vendor-expected SYSTEM INTERFACE
+ ${CMAKE_CURRENT_LIST_DIR}/expected/include
)