Attempting to use CMake to build new based on instructions found here: https://github.com/mongodb/mongo-cxx-driver/wiki/Quickstart-Guide-(New-Driver)
Was able to build libbson from mongo C driver version 1.3.5, but not mongo C driver (see separate bug report on on that).
When attempting to configure for VS2015, I wasn't sure what LIBBSON_DIR was supposed to be set to. I set it to the root directory where I had installed libbson, then the directory where the lib file was - neither appeared to work. In both cases, I got the following:
No build type selected, default is Release
Checking for module 'libbson-1.0>=1.3.4'
CMake Error at C:/Program Files (x86)/CMake/share/cmake-3.5/Modules/FindPkgConfig.cmake:363 (message):
A required package was not found
Call Stack (most recent call first):
C:/Program Files (x86)/CMake/share/cmake-3.5/Modules/FindPkgConfig.cmake:528 (_pkg_check_modules_internal)
cmake/FindLibBSON.cmake:26 (pkg_check_modules)
src/bsoncxx/CMakeLists.txt:67 (find_package)
Configuring incomplete, errors occurred!
See also "D:/GITRepos/mongo-cxx-driver/build/CMakeFiles/CMakeOutput.log".
- related to
-
CDRIVER-1197 CMake instructions for Windows out of date?
-
- Closed
-