mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-23 02:57:09 +01:00
[g2o] Fix static builds
This commit is contained in:
parent
397237813c
commit
4b26cd269c
@ -1,4 +1,4 @@
|
|||||||
Source: g2o
|
Source: g2o
|
||||||
Version: 20170730_git-2
|
Version: 20170730_git-3
|
||||||
Build-Depends: suitesparse, eigen3, clapack, ceres
|
Build-Depends: suitesparse, eigen3, clapack, ceres
|
||||||
Description: g2o: A General Framework for Graph Optimization http://openslam.org/g2o.html
|
Description: g2o: A General Framework for Graph Optimization http://openslam.org/g2o.html
|
||||||
|
@ -8,10 +8,13 @@ vcpkg_from_github(
|
|||||||
HEAD_REF master
|
HEAD_REF master
|
||||||
)
|
)
|
||||||
|
|
||||||
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" BUILD_LGPL_SHARED_LIBS)
|
||||||
|
|
||||||
vcpkg_configure_cmake(
|
vcpkg_configure_cmake(
|
||||||
SOURCE_PATH ${SOURCE_PATH}
|
SOURCE_PATH ${SOURCE_PATH}
|
||||||
PREFER_NINJA
|
PREFER_NINJA
|
||||||
OPTIONS
|
OPTIONS
|
||||||
|
-DBUILD_LGPL_SHARED_LIBS=${BUILD_LGPL_SHARED_LIBS}
|
||||||
-DG2O_BUILD_EXAMPLES=OFF
|
-DG2O_BUILD_EXAMPLES=OFF
|
||||||
-DG2O_BUILD_APPS=OFF
|
-DG2O_BUILD_APPS=OFF
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user