问题描述
我正在尝试使用 latest release 构建一个 mongocxx c 驱动程序。我正在使用 minGW makefile 执行此操作并使用 cmake-gui。
我的 cmake 配置是:
源输入:
C:/****/mongo-c-driver-1.17.3/build
构建目标:
C:/mongo-c-driver
输出如下:
CMake Warning (dev) in CMakeLists.txt:
CMake Warning (dev) in CMakeLists.txt:
No project() command is present. The top-level CMakeLists.txt file must
contain a literal,direct call to the project() command. Add a line of
code such as
project(ProjectName)
near the top of the file,but after cmake_minimum_required().
CMake is pretending there is a "project(Project)" command on the first
line.
This warning is for project developers. Use -Wno-dev to suppress it.
The C compiler identification is GNU 4.8.0
The CXX compiler identification is GNU 4.8.0
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working C compiler: C:/Qt5.2.1/Tools/mingw48_32/bin/gcc.exe - skipped
Detecting C compile features
Detecting C compile features - done
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Check for working CXX compiler: C:/Qt5.2.1/Tools/mingw48_32/bin/g++.exe - skipped
Detecting CXX compile features
Detecting CXX compile features - done
CMake Error at cmake/make_dist/CMakeLists.txt:7 (set_dist_list):
UnkNown CMake command "set_dist_list".
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as
cmake_minimum_required(VERSION 3.19)
should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
@R_761_4045@ion run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.
Configuring incomplete,errors occurred!
See also "C:/mongo-c-driver/CMakeFiles/CMakeOutput.log".
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)