C++ driver examples failing to compile

The mongo-cxx-driver-r3.6.1 examples fail to compile:

/mongo-cxx-driver-r3.6.1/examples/projects/mongocxx/cmake/static$ build.sh

  • BUILD_TYPE=Release
  • CXX_STANDARD=11
  • CMAKE=cmake
  • rm -rf ‘build/*’
  • cd build
  • ‘[’ -z ‘’ ‘]’
  • cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=11 …
    CMake Error at CMakeLists.txt:71 (get_target_property):
    get_target_property() called with non-existent target
    “mongo::bsoncxx_static”.

CMake Error at CMakeLists.txt:74 (message):
Expected BSONCXX_STATIC to be defined

– Configuring incomplete, errors occurred!

A post was merged into an existing topic: Compiling mongo-cxx-driver-r3.6.1