Merge pull request #162 from sdcb/mongo-client-fix

Improve mongo client port.
This commit is contained in:
Robert Schumacher 2016-10-14 17:28:03 -07:00 committed by GitHub
commit 77c9cc3d1a
4 changed files with 4 additions and 7 deletions

View File

@ -1,6 +1,5 @@
include(${CMAKE_TRIPLET_FILE})
include(vcpkg_common_functions)
find_program(POWERSHELL powershell)
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/libbson-1.4.2)
vcpkg_download_distfile(ARCHIVE

View File

@ -1,6 +1,5 @@
include(${CMAKE_TRIPLET_FILE})
include(vcpkg_common_functions)
find_program(POWERSHELL powershell)
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/mongo-c-driver-1.4.2)
vcpkg_download_distfile(ARCHIVE
@ -18,7 +17,7 @@ vcpkg_apply_patches(
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
OPTIONS
-DBSON_ROOT_DIR=${CURRENT_PACKAGES_DIR}/../libbson_${TARGET_TRIPLET}
-DBSON_ROOT_DIR=${CURRENT_INSTALLED_DIR}
)
vcpkg_install_cmake()

View File

@ -1,4 +1,4 @@
Source: mongo-cxx-driver
Version: 3.0.2
Build-Depends: boost,mongo-c-driver
Build-Depends: boost,libbson,mongo-c-driver
Description: MongoDB C++ Driver.

View File

@ -1,6 +1,5 @@
include(${CMAKE_TRIPLET_FILE})
include(vcpkg_common_functions)
find_program(POWERSHELL powershell)
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/mongo-cxx-driver-r3.0.2)
vcpkg_download_distfile(ARCHIVE
@ -18,8 +17,8 @@ vcpkg_apply_patches(
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
OPTIONS
-DLIBBSON_DIR=${CURRENT_PACKAGES_DIR}/../libbson_${TARGET_TRIPLET}
-DLIBMONGOC_DIR=${CURRENT_PACKAGES_DIR}/../mongo-c-driver_${TARGET_TRIPLET}
-DLIBBSON_DIR=${CURRENT_INSTALLED_DIR}
-DLIBMONGOC_DIR=${CURRENT_INSTALLED_DIR}
)
vcpkg_install_cmake()