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
  • CMAKE=cmake
  • rm -rf ‘build/*’
  • cd build
  • ‘[’ -z ‘’ ‘]’
    CMake Error at CMakeLists.txt:71 (get_target_property):
    get_target_property() called with non-existent target

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