[g2o] Fix static builds

This commit is contained in:
Robert Schumacher 2018-02-27 09:01:24 -08:00
parent 397237813c
commit 4b26cd269c
2 changed files with 4 additions and 1 deletions

View File

@ -1,4 +1,4 @@
Source: g2o
Version: 20170730_git-2
Version: 20170730_git-3
Build-Depends: suitesparse, eigen3, clapack, ceres
Description: g2o: A General Framework for Graph Optimization http://openslam.org/g2o.html

View File

@ -8,10 +8,13 @@ vcpkg_from_github(
HEAD_REF master
)
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" BUILD_LGPL_SHARED_LIBS)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
-DBUILD_LGPL_SHARED_LIBS=${BUILD_LGPL_SHARED_LIBS}
-DG2O_BUILD_EXAMPLES=OFF
-DG2O_BUILD_APPS=OFF
)