summaryrefslogtreecommitdiff
path: root/vendor/shelf-pack-cpp.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-17 12:28:55 +0300
commit8ee6cfa8fb022a7319ce83e795f4ff0d7e747ad7 (patch)
treefa7315445fd2808c35ac852f186ca592ba56b898 /vendor/shelf-pack-cpp.cmake
parente3421e042fe720d4d7b13457c4597921f31f3bcd (diff)
downloadqtlocation-mapboxgl-8ee6cfa8fb022a7319ce83e795f4ff0d7e747ad7.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/shelf-pack-cpp.cmake')
-rw-r--r--vendor/shelf-pack-cpp.cmake10
1 files changed, 7 insertions, 3 deletions
diff --git a/vendor/shelf-pack-cpp.cmake b/vendor/shelf-pack-cpp.cmake
index 0d8e850723..bf2e07c22f 100644
--- a/vendor/shelf-pack-cpp.cmake
+++ b/vendor/shelf-pack-cpp.cmake
@@ -1,5 +1,9 @@
-add_library(shelf-pack-cpp INTERFACE)
+if(TARGET mbgl-vendor-shelf-pack-cpp)
+ return()
+endif()
-target_include_directories(shelf-pack-cpp SYSTEM INTERFACE
- ${CMAKE_SOURCE_DIR}/vendor/shelf-pack-cpp/include
+add_library(mbgl-vendor-shelf-pack-cpp INTERFACE)
+
+target_include_directories(mbgl-vendor-shelf-pack-cpp SYSTEM INTERFACE
+ ${CMAKE_CURRENT_LIST_DIR}/shelf-pack-cpp/include
)