检查工作的 C 编译器:“cl.exe - 跳过”:Visual Studio 2019

Jin*_*nko 5 cmake compiler-warnings visual-studio visual-studio-2019

在运行我使用 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
Run Code Online (Sandbox Code Playgroud)

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

Fre*_*red 8

这在较新的 CMake 版本中很正常,因为测试被跳过,因为编译器可以确定 ABI 是已知的。

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