小编Shu*_*ari的帖子

CMake 将无法正确生成此项目。调用堆栈(首先是最近的调用):CMakeLists.txt:20(项目)

我想在运行以下命令时在 Windows 系统中安装协议缓冲区:

cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../../../../install ../.. 
Run Code Online (Sandbox Code Playgroud)

我收到这个错误:

-- The C compiler identification is MSVC 19.22.27905.0
-- The CXX compiler identification is MSVC 19.22.27905.0

-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.22.27905/bin/Hostx64/x64/cl.exe

-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.22.27905/bin/Hostx64/x64/cl.exe -- broken

CMake Error at C:/Program Files/CMake/share/cmake-3.15/Modules/CMakeTestCCompiler.cmake:60 (message):
Run Code Online (Sandbox Code Playgroud)

C 编译器:

    "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.22.27905/bin/Hostx64/x64/cl.exe"
Run Code Online (Sandbox Code Playgroud)

无法编译简单的测试程序。它失败并显示以下输出:

 Change Dir: C:/ProtoBuff/protobuf-3.9.0/cmake/build/release/CMakeFiles/CMakeTmp

Run Build Command(s):nmake /nologo cmTC_5d4c2\fast &&       "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.22.27905\bin\HostX64\x64\nmake.exe" -f …
Run Code Online (Sandbox Code Playgroud)

windows cmake

5
推荐指数
1
解决办法
6445
查看次数

标签 统计

cmake ×1

windows ×1