aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>2019-04-08 23:24:31 -0700
committerPhil Christensen <philc@microsoft.com>2019-04-08 23:24:31 -0700
commit9ca6603ca4e891bed35aac96aa5a1c83e91d91a5 (patch)
tree1b319cb5b48d09645c13d925122ef8e12230efbe
parent46bd973e1897c11da8bcb40b501fe46d431a6de0 (diff)
downloadvcpkg-9ca6603ca4e891bed35aac96aa5a1c83e91d91a5.tar.gz
vcpkg-9ca6603ca4e891bed35aac96aa5a1c83e91d91a5.zip
[g2o] Fix g2o:x64-windows failed with POST_BUILD_CHECKS_FAILED.#4098 (#5925)
* [g2o] fix g20:x64-windows failed with POST_BUILD_CHECKS_FAILED.#4098 * Add "VCPKG_USE_HEAD_VERSION" to judge if it is from HEAD.
-rw-r--r--ports/g2o/CONTROL2
-rw-r--r--ports/g2o/portfile.cmake4
2 files changed, 5 insertions, 1 deletions
diff --git a/ports/g2o/CONTROL b/ports/g2o/CONTROL
index cdad4d19a..57999aece 100644
--- a/ports/g2o/CONTROL
+++ b/ports/g2o/CONTROL
@@ -1,4 +1,4 @@
Source: g2o
-Version: 20170730_git-3
+Version: 20170730_git-4
Build-Depends: suitesparse, eigen3, clapack, ceres
Description: g2o: A General Framework for Graph Optimization http://openslam.org/g2o.html
diff --git a/ports/g2o/portfile.cmake b/ports/g2o/portfile.cmake
index ba8186789..6d09b8a8c 100644
--- a/ports/g2o/portfile.cmake
+++ b/ports/g2o/portfile.cmake
@@ -23,6 +23,10 @@ vcpkg_install_cmake()
vcpkg_copy_pdbs()
+if(VCPKG_USE_HEAD_VERSION)
+ vcpkg_fixup_cmake_targets(CONFIG_PATH "lib/cmake/g2o")
+endif()
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
file(GLOB_RECURSE HEADERS "${CURRENT_PACKAGES_DIR}/include/*")
foreach(HEADER ${HEADERS})