fix CMake files. (#14306)

This commit is contained in:
Sean Yen 2020-10-30 17:29:34 -07:00 committed by GitHub
parent c39b1ae3d2
commit e9ff3cd5a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 24 additions and 1 deletions

View File

@ -1,5 +1,5 @@
Source: cartographer
Version: 1.0.0-2
Version: 1.0.0-3
Build-Depends: ceres[suitesparse], gflags, glog, lua, cairo, boost-iostreams, gtest, protobuf
Homepage: https://github.com/googlecartographer/cartographer
Description: Google 2D & 3D SLAM package

View File

@ -0,0 +1,22 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2e3a686be..f2a0c5d8e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -300,7 +300,7 @@ foreach(HDR ${INSTALL_GENERATED_HDRS})
)
endforeach()
-set(CARTOGRAPHER_CMAKE_DIR share/cartographer/cmake)
+set(CARTOGRAPHER_CMAKE_DIR share/cartographer)
include(CMakePackageConfigHelpers)
configure_package_config_file(
cartographer-config.cmake.in
@@ -311,7 +311,7 @@ configure_package_config_file(
install(
EXPORT CartographerExport
- DESTINATION share/cartographer/cmake/
+ DESTINATION share/cartographer/
FILE CartographerTargets.cmake
)

View File

@ -9,6 +9,7 @@ vcpkg_from_github(
PATCHES
fix-find-packages.patch
fix-build-error.patch
fix-cmake-location.patch
)
vcpkg_configure_cmake(