【问题标题】:Check for working C compiler: "cl.exe - skipped" : Visual Studio 2019检查工作的 C 编译器:“cl.exe - 已跳过”:Visual Studio 2019
【发布时间】:2020-10-05 16:38:45
【问题描述】:

在运行使用 cmake 的构建脚本时,我在构建过程中得到以下输出:

**********************************************************************
** Visual Studio 2019 Developer Command Prompt v16.7.5
** Copyright (c) 2020 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'
-- The C compiler identification is MSVC 19.27.29112.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.27.29110/bin/Hostx64/x64/cl.exe - skipped

我在另一个thread 中看到这不是错误,我的代码继续编译直到出现不同的错误,但为什么输出会被“跳过”而不是“工作”?

【问题讨论】:

    标签: visual-studio cmake visual-studio-2019 compiler-warnings


    【解决方案1】:

    这在较新的 CMake 版本中是正常的,因为由于编译器能够确定 ABI 而已知编译器可以工作,因此跳过了测试。

    参考https://gitlab.kitware.com/cmake/cmake/-/merge_requests/4789

    【讨论】:

      猜你喜欢
      • 2019-06-07
      • 2020-10-28
      • 2020-06-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-06-29
      相关资源
      最近更新 更多