# VS2019 Compiler Identification is Unknown (Fresh Install VS2019 and CMAKE)

**URL:** https://discourse.cmake.org/t/vs2019-compiler-identification-is-unknown-fresh-install-vs2019-and-cmake/2770
**Category:** Usage
**Tags:** os:windows, gen:vs
**Created:** [February 16, 2021, 3:34pm UTC](https://discourse.cmake.org/t/vs2019-compiler-identification-is-unknown-fresh-install-vs2019-and-cmake/2770 "2021-02-16T15:34:07Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![TomzBench](https://discourse.cmake.org/user_avatar/discourse.cmake.org/tomzbench/32/1205_2.png) [@TomzBench](https://discourse.cmake.org/u/TomzBench)
#### Post date: [February 16, 2021, 3:34pm UTC](https://discourse.cmake.org/t/vs2019-compiler-identification-is-unknown-fresh-install-vs2019-and-cmake/2770/1 "2021-02-16T15:34:07Z")

</div>

The C compiler identification could not be found in “C:/{snip}/CMakeFiles/3.19.5/CompilerIdC/CompilerIdC.exe”

The C compiler identification could not be found in “C:/{snip}/CMakeFiles/3.19.5/CompilerIdC/CompilerIdC.vcxproj”

Checking whether the C compiler is IAR using “” did not match “IAR .+ Compiler”:  
Microsoft ® C/C++ Optimizing Compiler Version 19.28.29337 for x64  
Copyright © Microsoft Corporation. All rights reserved.

usage: cl [option…] filename… [/link linkoption…]  
Checking whether the C compiler is IAR using “” did not match “IAR .+ Compiler”:  
Microsoft ® C/C++ Optimizing Compiler Version 19.28.29337 for x64  
Copyright © Microsoft Corporation. All rights reserved.

usage: cl [option…] filename… [/link linkoption…]  
The CXX compiler identification could not be found in “C:/{snip}/CMakeFiles/3.19.5/CompilerIdCXX/CompilerIdCXX.exe”

The CXX compiler identification could not be found in “C:/{snip}/CMakeFiles/3.19.5/CompilerIdCXX/CompilerIdCXX.vcxproj”

The CXX compiler identification could not be found in “C:/{snip}/CMakeFiles/3.19.5/CompilerIdCXX/CompilerIdCXX.exe”

The CXX compiler identification could not be found in “C:/{snip}/CMakeFiles/3.19.5/CompilerIdCXX/CompilerIdCXX.vcxproj”

```auto

```

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [February 16, 2021, 6:29pm UTC](https://discourse.cmake.org/t/vs2019-compiler-identification-is-unknown-fresh-install-vs2019-and-cmake/2770/2 "2021-02-16T18:29:08Z")

</div>

Hmm. It looks like the VS installation might be incomplete? Did you install a toolchain?

Cc: @brad.king

---

<div class="post-metadata">

### Author: ![brad.king](https://discourse.cmake.org/user_avatar/discourse.cmake.org/brad.king/32/11_2.png) [@brad.king](https://discourse.cmake.org/u/brad.king)
#### Post date: [February 16, 2021, 6:33pm UTC](https://discourse.cmake.org/t/vs2019-compiler-identification-is-unknown-fresh-install-vs2019-and-cmake/2770/3 "2021-02-16T18:33:22Z")

</div>

If `C:/{snip}/CMakeFiles/3.19.5/CompilerIdC/CompilerIdC.exe` exists, please attach it here.

How are you invoking CMake?

FYI, for the `Visual Studio 16 2019` generator you don’t need to run from any special environment. Be sure to use a fresh build tree on each attempt.

---

<div class="post-metadata">

### Author: ![TomzBench](https://discourse.cmake.org/user_avatar/discourse.cmake.org/tomzbench/32/1205_2.png) [@TomzBench](https://discourse.cmake.org/u/TomzBench)
#### Post date: [February 16, 2021, 7:20pm UTC](https://discourse.cmake.org/t/vs2019-compiler-identification-is-unknown-fresh-install-vs2019-and-cmake/2770/4 "2021-02-16T19:20:34Z")

</div>

After some debugging I learned that the issue is related to being on a network drive. When I clone my repo onto the local C drive everything works as expected. However, when I am using a drive connected to my vmware-host// drive - the compiler is no longer detected.

Is this not supported maybe?

Note that my Guest OS is Windows 10 PRO and my Host OS is Fedora Linux, and my source files are mounted into my Win10 Guest from Linux. If there is support for this It would make my environment very nice to test code on multiple platforms.

(I start from fresh build files, meaning I definetly do not mix linux build files and windows build files. I only share the source files)

---

<div class="post-metadata">

### Author: ![TomzBench](https://discourse.cmake.org/user_avatar/discourse.cmake.org/tomzbench/32/1205_2.png) [@TomzBench](https://discourse.cmake.org/u/TomzBench)
#### Post date: [February 18, 2021, 12:05am UTC](https://discourse.cmake.org/t/vs2019-compiler-identification-is-unknown-fresh-install-vs2019-and-cmake/2770/5 "2021-02-18T00:05:58Z")

</div>

@brad.king

Does CMake work when source and build directory are on a SMB mount? When I build my CMake project on my local drive everything works as expected. However when I build my CMake project located on a network drive, my compilers are not detected. I’m not sure if this is an issue with CMake or if this is not supported?

---

<div class="post-metadata">

### Author: ![Angew](https://discourse.cmake.org/user_avatar/discourse.cmake.org/angew/32/229_2.png) [@Angew](https://discourse.cmake.org/u/Angew)
#### Post date: [February 18, 2021, 8:19am UTC](https://discourse.cmake.org/t/vs2019-compiler-identification-is-unknown-fresh-install-vs2019-and-cmake/2770/6 "2021-02-18T08:19:04Z")

</div>

FWIW, compiler identification also breaks for me when generating a project on a network drive (I’m running non-virtual Windows 10 and using VS 2017 generator). Funny thing is, I’m pretty certain this used to work for me some time (years?) ago - but I don’t remember if I was at Windows 7 or 10 at that time. Perhaps it has to do with Windows’ default approach of “everything network is super-scary and you should only touch it with a 10-foot pole if possible.”

---

<div class="post-metadata">

### Author: ![brad.king](https://discourse.cmake.org/user_avatar/discourse.cmake.org/brad.king/32/11_2.png) [@brad.king](https://discourse.cmake.org/u/brad.king)
#### Post date: [February 18, 2021, 11:43am UTC](https://discourse.cmake.org/t/vs2019-compiler-identification-is-unknown-fresh-install-vs2019-and-cmake/2770/7 "2021-02-18T11:43:15Z")

</div>

I just mounted a SMB path on `K:`, and the following works fine:

```auto
K:\build>type ..\src\CMakeLists.txt
cmake_minimum_required(VERSION 3.19)
project(NetworkDrive)

K:\build>cmake ..\src -G "Visual Studio 16 2019"
...
-- Configuring done
-- Generating done
-- Build files have been written to: K:/build

```

---

<div class="post-metadata">

### Author: ![TomzBench](https://discourse.cmake.org/user_avatar/discourse.cmake.org/tomzbench/32/1205_2.png) [@TomzBench](https://discourse.cmake.org/u/TomzBench)
#### Post date: [February 18, 2021, 2:23pm UTC](https://discourse.cmake.org/t/vs2019-compiler-identification-is-unknown-fresh-install-vs2019-and-cmake/2770/8 "2021-02-18T14:23:43Z")

</div>

I have VMWARE PRO with Windows 10 PRO Guest OS. I am building from the Guest OS. When the Build folder is on the shared folder - the compiler is not detected. When the build folder is on a local drive, the compiler _is_ detected. So I can work with this since it doesn’t matter where my source files are. But it’s definitely interesting and no idea why. I can provide more logs if interested in learning why this doesn’t work. But in either case I am ok since I can work around this issue

---

<div class="post-metadata">

### Author: ![dvirtz](https://discourse.cmake.org/user_avatar/discourse.cmake.org/dvirtz/32/2182_2.png) [@dvirtz](https://discourse.cmake.org/u/dvirtz)
#### Post date: [February 15, 2022, 6:56am UTC](https://discourse.cmake.org/t/vs2019-compiler-identification-is-unknown-fresh-install-vs2019-and-cmake/2770/9 "2022-02-15T06:56:27Z")

</div>

I’m also seeing this with a VMWare VM, cmake 3.22.2, VS 2019. @brad.king Can you try that on a VMWare machine?
