Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Check for working C compiler: "cl.exe - skipped" : Visual Studio 2019

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"?

like image 502
Jinko Avatar asked Oct 05 '20 16:10

Jinko


People also ask

Where is Cl exe located?

The file cl.exe is located in a subfolder of "C:\Program Files (x86)" (for example C:\Program Files (x86)\Bench\Proxy\).

What is CL exe in Visual Studio?

cl.exe is a tool that controls the Microsoft C++ (MSVC) C and C++ compilers and linker. cl.exe can be run only on operating systems that support Microsoft Visual Studio for Windows. You can start this tool only from a Visual Studio developer command prompt.

Does MSVC compile C?

The Microsoft C/C++ compiler (MSVC) uses a basic rule to determine which language to use when it compiles your code. By default, the MSVC compiler treats all files that end in . c as C source code, and all files that end in .


Video Answer


1 Answers

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.

Refer to https://gitlab.kitware.com/cmake/cmake/-/merge_requests/4789

like image 54
fdk1342 Avatar answered Oct 19 '22 08:10

fdk1342