summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2020-03-27 10:02:12 +0200
committerJuha Alanen <juha.alanen@mapbox.com>2020-03-27 14:46:40 +0200
commit7cf5350e3cd64323370cae27367292eea6f97ba9 (patch)
tree789e0610cefc9a7799671dcd98d14b920d784568
parentbc80e5bacf982f3b3612e74115ae4cdb8f8b9dd1 (diff)
downloadqtlocation-mapboxgl-7cf5350e3cd64323370cae27367292eea6f97ba9.tar.gz
[build] Use cheap-ruler-cpp provided via mapbox-base
-rw-r--r--.gitmodules3
-rw-r--r--platform/glfw/CMakeLists.txt4
m---------vendor/cheap-ruler-cpp0
-rw-r--r--vendor/cheap-ruler-cpp.cmake12
4 files changed, 1 insertions, 18 deletions
diff --git a/.gitmodules b/.gitmodules
index 459ca1b2c3..de7abf84e9 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -34,9 +34,6 @@
[submodule "vendor/benchmark"]
path = vendor/benchmark
url = https://github.com/google/benchmark.git
-[submodule "vendor/cheap-ruler-cpp"]
- path = vendor/cheap-ruler-cpp
- url = https://github.com/mapbox/cheap-ruler-cpp.git
[submodule "vendor/glfw"]
path = vendor/glfw
url = https://github.com/glfw/glfw.git
diff --git a/platform/glfw/CMakeLists.txt b/platform/glfw/CMakeLists.txt
index dd7fd306a0..2a1524e115 100644
--- a/platform/glfw/CMakeLists.txt
+++ b/platform/glfw/CMakeLists.txt
@@ -28,8 +28,6 @@ target_include_directories(
PRIVATE ${PROJECT_SOURCE_DIR}/src
)
-include(${PROJECT_SOURCE_DIR}/vendor/cheap-ruler-cpp.cmake)
-
# Use target_link_directories when we move away from CMake 3.10.
target_link_libraries(
mbgl-glfw
@@ -45,7 +43,7 @@ target_link_libraries(
Mapbox::Base::Extras::rapidjson
Mapbox::Map
mbgl-compiler-options
- mbgl-vendor-cheap-ruler-cpp
+ Mapbox::Base::cheap-ruler-cpp
)
if(MBGL_WITH_OPENGL)
diff --git a/vendor/cheap-ruler-cpp b/vendor/cheap-ruler-cpp
deleted file mode 160000
-Subproject 98cbe70dab74c5b77f139013ea5b3623d3ba3dc
diff --git a/vendor/cheap-ruler-cpp.cmake b/vendor/cheap-ruler-cpp.cmake
deleted file mode 100644
index 7fa21eb69e..0000000000
--- a/vendor/cheap-ruler-cpp.cmake
+++ /dev/null
@@ -1,12 +0,0 @@
-if(TARGET mbgl-vendor-cheap-ruler-cpp)
- return()
-endif()
-
-add_library(
- mbgl-vendor-cheap-ruler-cpp INTERFACE
-)
-
-target_include_directories(
- mbgl-vendor-cheap-ruler-cpp SYSTEM
- INTERFACE ${CMAKE_CURRENT_LIST_DIR}/cheap-ruler-cpp/include
-)