-
Type: New Feature
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Build
Originally from this Google Group post.
I'm trying to include mongo-cxx-driver into my CMake project.
Here is part of my root CMakeLists.txt
project(testprj)
add_subdirectory(libbson)
add_subdirectory(mongo-c-driver)
add_subdirectory(mongo-cxx-driver)While libbson, and mongo-c-driver compiles without problems, mongo-cxx-driver returns errors. It seams CMake cannot locate mongo-c-driver.
CMake Error at mongo-cxx-driver/src/mongocxx/CMakeLists.txt:23 (find_package):
By not providing "FindLibMongoC.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"LibMongoC", but CMake did not find one.Could not find a package configuration file provided by "LibMongoC"
(requested version 1.5.0) with any of the following names:LibMongoCConfig.cmake
libmongoc-config.cmakeAdd the installation prefix of "LibMongoC" to CMAKE_PREFIX_PATH or set
"LibMongoC_DIR" to a directory containing one of the above files. If
"LibMongoC" provides a separate development package or SDK, be sure it has
been installed.
- is depended on by
-
CXX-2036 Improve spec test runners
- Backlog
- related to
-
CXX-991 Make it easier to include mongocxx in other cmake projects
- Closed
-
CDRIVER-3783 compile definitions and include directories should be specified at the target level
- Closed