From 9ca6603ca4e891bed35aac96aa5a1c83e91d91a5 Mon Sep 17 00:00:00 2001 From: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> Date: Mon, 8 Apr 2019 23:24:31 -0700 Subject: [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. --- ports/g2o/CONTROL | 2 +- ports/g2o/portfile.cmake | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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}) -- cgit v1.2.3