mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 18:31:15 +08:00
[g2o] Fix static builds
This commit is contained in:
parent
397237813c
commit
4b26cd269c
@ -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
|
||||
|
@ -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
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user