【问题标题】:how to build mongodb-cxx-driver in win如何在win中构建mongodb-cxx-driver
【发布时间】:2016-12-09 09:44:41
【问题描述】:

我按照https://mongodb.github.io/mongo-cxx-driver/mongocxx-v3/installation/ 上的说明进行操作,但在STEP4处被阻止,它说:

CMakeLists.txt:135 (generate_export_header) 处的 CMake 错误: 未知的 CMake 命令“generate_export_header”。

我发现这个命令存在很久了。我试过cmake3.7rc1和rc3,但一直出错。 如何构建bsoncxx

【问题讨论】:

    标签: windows mongodb bson


    【解决方案1】:

    只需转到 CMakeLists.txt 第 134 行并使用以下代码添加新行

    include(GenerateExportHeader)
    

    也许它被旧版本中的某些依赖项包含

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-01-22
      • 1970-01-01
      • 2019-01-05
      相关资源
      最近更新 更多