[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.
This commit is contained in:
NancyLi1013 2019-04-08 23:24:31 -07:00 committed by Phil Christensen
parent 46bd973e18
commit 9ca6603ca4
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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})