检查工作的 C 编译器:“cl.exe - skipped":Visual Studio 2019 [英] Check for working C compiler: "cl.exe - skipped" : Visual Studio 2019

查看:29
本文介绍了检查工作的 C 编译器:“cl.exe - skipped":Visual Studio 2019的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

When running my build script that uses cmake I am getting the following output during the build process:

**********************************************************************
** 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

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

I've seen in another thread that this isn't an error, and my code goes onto compile until a different error, but why would the output be "skipped" instead of "works"?

推荐答案

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

That's normal in newer CMake versions as the test is skipped because the compiler is known to work because it was able to determine the ABI.

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

这篇关于检查工作的 C 编译器:“cl.exe - skipped":Visual Studio 2019的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆