[ceres] Use gflags config file + ninja. Fixes #3116.

This commit is contained in:
Robert Schumacher 2018-03-26 11:58:37 -07:00
parent 6dc98bbcee
commit 64ab9dc274
2 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,5 @@
Source: ceres
Version: 1.14.0
Version: 1.14.0-1
# eigen is always required by CMake, even if it isn't used.
Build-Depends: glog, eigen3
Description: non-linear optimization package

View File

@ -46,6 +46,7 @@ endif()
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
-DEXPORT_BUILD_DIR=ON
-DBUILD_EXAMPLES=OFF
@ -55,7 +56,7 @@ vcpkg_configure_cmake(
-DEIGENSPARSE=${EIGENSPARSE}
-DLAPACK=${LAPACK}
-DSUITESPARSE=${SUITESPARSE}
-DGFLAGS_PREFER_EXPORTED_GFLAGS_CMAKE_CONFIGURATION=OFF # TheiaSfm doesn't work well with this
-DGFLAGS_PREFER_EXPORTED_GFLAGS_CMAKE_CONFIGURATION=ON
-DGLOG_PREFER_EXPORTED_GLOG_CMAKE_CONFIGURATION=OFF # TheiaSfm doesn't work well with this
-DMSVC_USE_STATIC_CRT=${MSVC_USE_STATIC_CRT_VALUE}
)