vscode-cmake-tools icon indicating copy to clipboard operation
vscode-cmake-tools copied to clipboard

[Bug] Unable to find CL compiler in windows

Open lppinto opened this issue 3 months ago • 3 comments

Brief Issue Summary

With a visual studio preset, cmake configuration stopped being able to find the cl compiler. I know this worked in the past, but suddenly it stopped working (I never used a Visual Studio Development Prompt)

The CmakePresets I'm using is the following

{
	"version": 8,
	"configurePresets": [
		{
			"name": "base-vs",
			"hidden": true,
			"generator": "Visual Studio 17 2022",
			"toolset": "host=x64",
			"architecture": "x64",
			"binaryDir": "${sourceDir}/cmake_build/build/${presetName}",
			"cacheVariables": {
				"CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}",
			}
		},
		{
			"name": "vs-dynamic-debug",
			"displayName": "VS - Dynamic CRT (Debug)",
			"inherits": "base-vs",
			"cacheVariables": {
				"CMAKE_BUILD_TYPE": "Debug",
			}
		},
		{
			"name": "vs-dynamic-release",
			"displayName": "VS - Dynamic CRT (Release)",
			"inherits": "base-vs",
			"cacheVariables": {
				"CMAKE_BUILD_TYPE": "Release",
			}
		},
		{
			"name": "vs-static-debug",
			"displayName": "VS - Static CRT (noCRT, Debug)",
			"inherits": "base-vs",
			"cacheVariables": {
				"CMAKE_BUILD_TYPE": "Debug",
			}
		},
		{
			"name": "vs-static-release",
			"displayName": "VS - Static CRT (noCRT, Release)",
			"inherits": "base-vs",
			"cacheVariables": {
				"CMAKE_BUILD_TYPE": "Release",
			}
		}
	],
	"buildPresets": [
		{
			"name": "vs-dynamic-debug",
			"displayName": "Build VS Dynamic (Debug)",
			"configurePreset": "vs-dynamic-debug",
			"configuration": "Debug",
			"targets": [
				"ALL_BUILD"
			]
		},
		{
			"name": "vs-dynamic-release",
			"displayName": "Build VS Dynamic (Release)",
			"configurePreset": "vs-dynamic-release",
			"configuration": "Release",
			"targets": [
				"ALL_BUILD"
			]
		},
		{
			"name": "vs-static-debug",
			"displayName": "Build VS Static (Debug)",
			"configurePreset": "vs-static-debug",
			"configuration": "Debug",
			"targets": [
				"ALL_BUILD"
			]
		},
		{
			"name": "vs-static-release",
			"displayName": "Build VS Static (Release)",
			"configurePreset": "vs-static-release",
			"configuration": "Release",
			"targets": [
				"ALL_BUILD"
			]
		}
	]
}

CMake Tools Diagnostics

{
  "os": "win32",
  "vscodeVersion": "1.105.1",
  "cmtVersion": "1.21.36",
  "configurations": [
    {
      "folder": "d:\\Development\\videomixing-main.worktrees\\lui-cmakify-workspace",
      "cmakeVersion": "4.1.2",
      "configured": true,
      "generator": "Visual Studio 17 2022",
      "usesPresets": true,
      "compilers": {}
    }
  ],
  "cpptoolsIntegration": {
    "isReady": false,
    "hasCodeModel": false,
    "activeBuildType": "",
    "buildTypesSeen": [],
    "requests": [],
    "responses": [],
    "partialMatches": [],
    "targetCount": 0,
    "executablesCount": 0,
    "librariesCount": 0,
    "targets": []
  },
  "settings": [
    {
      "communicationMode": "automatic",
      "useCMakePresets": "auto",
      "configureOnOpen": true
    }
  ]
}

Debug Log

[main] Resolving the selected build preset
[main] Loading new build preset into CMake driver
[driver] Switching to build preset: vs-dynamic-debug
[driver] CMakeDriver build preset set to vs-dynamic-debug
[main] Resolving the selected test preset
[main] Resolving the selected test preset
[main] Loading new test preset into CMake driver
[driver] Switching to test preset: __defaultTestPreset__
[driver] CMakeDriver test preset set to __defaultTestPreset__
[main] Resolving the selected package preset
[main] Resolving the selected package preset
[main] Loading new package preset into CMake driver
[driver] Switching to package preset: __defaultPackagePreset__
[driver] CMakeDriver package preset set to __defaultPackagePreset__
[main] Resolving the selected workflow preset
[main] Resolving the selected workflow preset
[expand] expanded ${sourceDir}/cmake_build/build/${presetName}
[expand] expanded ${sourceDir}/out/install/${presetName}
[expand] expanded ${sourceDir}/vcpkg_installed_vs
[expand] expanded ${sourceDir}/vcpkg
[main] Loading new workflow preset into CMake driver
[driver] Switching to workflow preset: __defaultWorkflowPreset__
[driver] CMakeDriver workflow preset set to __defaultWorkflowPreset__
[main] Configuring project: lui-cmakify-workspace 
[main] Saving open files before configure/build
[driver] Start configure 
[driver] Running pre-configure checks and steps
[cmakefileapi-driver] Configuring using preset
[cmakefileapi-driver] Invoking CMake C:\Program Files\CMake\bin\cmake.EXE with arguments ["-DCMAKE_BUILD_TYPE=Debug","-DVCPKG_TARGET_TRIPLET=x64-windows-viz","-DVCPKG_HOST_TRIPLET=x64-windows-viz","-DCMAKE_INSTALL_PREFIX=D:/Development/videomixing-main.worktrees/lui-cmakify-workspace/out/install/vs-dynamic-debug","-DVCPKG_INSTALLED_DIR=D:/Development/videomixing-main.worktrees/lui-cmakify-workspace/vcpkg_installed_vs","-DVCPKG_MANIFEST_DIR=D:/Development/videomixing-main.worktrees/lui-cmakify-workspace/vcpkg","-S","D:/Development/videomixing-main.worktrees/lui-cmakify-workspace","-B","D:/Development/videomixing-main.worktrees/lui-cmakify-workspace/cmake_build/build/vs-dynamic-debug","-G","Visual Studio 17 2022","-T","host=x64","-A","x64"]
[proc] Executing command: "C:\Program Files\CMake\bin\cmake.EXE" -DCMAKE_BUILD_TYPE=Debug -DVCPKG_TARGET_TRIPLET=x64-windows-viz -DVCPKG_HOST_TRIPLET=x64-windows-viz -DCMAKE_INSTALL_PREFIX=D:/Development/videomixing-main.worktrees/lui-cmakify-workspace/out/install/vs-dynamic-debug -DVCPKG_INSTALLED_DIR=D:/Development/videomixing-main.worktrees/lui-cmakify-workspace/vcpkg_installed_vs -DVCPKG_MANIFEST_DIR=D:/Development/videomixing-main.worktrees/lui-cmakify-workspace/vcpkg -S D:/Development/videomixing-main.worktrees/lui-cmakify-workspace -B D:/Development/videomixing-main.worktrees/lui-cmakify-workspace/cmake_build/build/vs-dynamic-debug -G "Visual Studio 17 2022" -T host=x64 -A x64
[proc]   with environment: {"ALLUSERSPROFILE":"C:\\ProgramData","APPDATA":"C:\\Users\\lui\\AppData\\Roaming","APPLICATION_INSIGHTS_NO_STATSBEAT":"true","CHROME_CRASHPAD_PIPE_NAME":"\\\\.\\pipe\\crashpad_34044_TPFGQBRTTFFZEZYJ","CommonPropertyBagPath":"C:\\Users\\lui\\AppData\\Local\\Temp\\csdevkit\\6b85d9ea.json","CommonPropertyBagWithConfigPath":"C:\\Users\\lui\\AppData\\Local\\Temp\\csdevkit\\b4943182087c1762454325530.json","COMPUTERNAME":"VIZG4TRQV3","ChocolateyInstall":"C:\\ProgramData\\chocolatey","ChocolateyLastPathUpdate":"133600682445055133","ComSpec":"C:\\windows\\system32\\cmd.exe","CommonProgramFiles":"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files","CommonProgramW6432":"C:\\Program Files\\Common Files","DOTNET_MULTILEVEL_LOOKUP":"undefined","DriverData":"C:\\Windows\\System32\\Drivers\\DriverData","ELECTRON_RUN_AS_NODE":"1","FPS_BROWSER_APP_PROFILE_STRING":"Internet Explorer","FPS_BROWSER_USER_PROFILE_STRING":"Default","HOMEDRIVE":"C:","HOMEPATH":"\\Users\\lui","IGCCSVC_DB":"AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAAJfzUiV1Omk2ImpWnq35DvgQAAAACAAAAAAAQZgAAAAEAACAAAABxQuLp0/L1OhvU0N39YirLOn8lpkD2a4WzlHhRSMlt3AAAAAAOgAAAAAIAACAAAAAdpcetGSlAUn6LipSAl1qeNWoNu0mswa2tEmmAnW+uBWAAAACRo1iG4jSO4X3ozgwBkm+DZ0e7TWYKZUb4fDcdx0C8R5/+MhuQny7Q9KHY64d/kypDhxzVvmb1FDOwNkpLthJ0BcXZh2Uj5gyVmdZYgNoG8u9ex1q/SnJ1FYKNH7eJFqZAAAAAYduSjARmDnrMwfo/G8Yfr7gr7GTCId/pAUiK5o6XCouBn7Axiqyp/cvF+iOOpCf1vljuTYTxKWZUHakpag00bw==","JD2_HOME":"C:\\Users\\lui\\AppData\\Local\\JDownloader 2","LOCALAPPDATA":"C:\\Users\\lui\\AppData\\Local","LOGONSERVER":"\\\\VIZRTBGO03","NDI_Advanced_SDK_DIR":"C:\\Program Files\\NDI\\NDI 5 Advanced SDK","NDI_RUNTIME_DIR_V2":"C:\\Program Files\\NDI\\NDI 6 Tools\\Runtime","NDI_RUNTIME_DIR_V3":"C:\\Program Files\\NDI\\NDI 6 Tools\\Runtime","NDI_RUNTIME_DIR_V4":"C:\\Program Files\\NDI\\NDI 6 Tools\\Runtime","NDI_RUNTIME_DIR_V5":"C:\\Program Files\\NDI\\NDI 6 Tools\\Runtime","NDI_RUNTIME_DIR_V6":"C:\\Program Files\\NDI\\NDI 6 Tools\\Runtime","NUMBER_OF_PROCESSORS":"20","ORIGINAL_XDG_CURRENT_DESKTOP":"undefined","OS":"Windows_NT","OneDrive":"C:\\Users\\lui\\OneDrive - Vizrt","OneDriveCommercial":"C:\\Users\\lui\\OneDrive - Vizrt","PATHEXT":".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW;.RB;.RBW","POWERSHELL_DISTRIBUTION_CHANNEL":"MSI:Windows 10 Pro","PROCESSOR_ARCHITECTURE":"AMD64","PROCESSOR_IDENTIFIER":"Intel64 Family 6 Model 154 Stepping 3, GenuineIntel","PROCESSOR_LEVEL":"6","PROCESSOR_REVISION":"9a03","PSModulePath":"C:\\Program Files\\WindowsPowerShell\\Modules;C:\\windows\\system32\\WindowsPowerShell\\v1.0\\Modules;C:\\Program Files\\Barracuda\\Network Access Client\\Modules","PUBLIC":"C:\\Users\\Public","Path":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\Common7\\IDE\\CommonExtensions\\Microsoft\\CMake\\Ninja;C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\VC\\Tools\\MSVC\\14.43.34808\\bin\\HostX64\\x64;C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\Common7\\IDE\\VC\\VCPackages;C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\Common7\\IDE\\CommonExtensions\\Microsoft\\TestWindow;C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\Common7\\IDE\\CommonExtensions\\Microsoft\\TeamFoundation\\Team Explorer;C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\MSBuild\\Current\\bin\\Roslyn;C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v10.0A\\bin\\NETFX 4.8 Tools\\x64\\;C:\\Program Files (x86)\\HTML Help Workshop;C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\Common7\\IDE\\CommonExtensions\\Microsoft\\FSharp\\Tools;C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\Team Tools\\DiagnosticsHub\\Collector;C:\\Program Files (x86)\\Windows Kits\\10\\bin\\10.0.22621.0\\\\x64;C:\\Program Files (x86)\\Windows Kits\\10\\bin\\\\x64;C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\\\MSBuild\\Current\\Bin\\amd64;C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319;C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\Common7\\IDE\\;C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\Common7\\Tools\\;C:\\Program Files\\Python314\\Scripts\\;C:\\Program Files\\Python314\\;C:\\Program Files (x86)\\Razer\\ChromaBroadcast\\bin;C:\\Program Files\\Razer\\ChromaBroadcast\\bin;C:\\Python312\\Scripts\\;C:\\Python312\\;C:\\Windows\\System32;C:\\Windows;C:\\Windows\\System32\\wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\dotnet\\;C:\\Program Files (x86)\\Windows Kits\\10\\Windows Performance Toolkit\\;C:\\Program Files\\nodejs\\;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\WireGuard\\;C:\\Program Files\\Process Lasso\\;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\Program Files\\PowerShell\\7\\;C:\\Program Files\\Git\\cmd;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files (x86)\\Razer Chroma SDK\\bin;C:\\Program Files\\Razer Chroma SDK\\bin;C:\\Program Files (x86)\\Nmap;C:\\Tools\\iperf3.18_64;C:\\Tools\\ffmpeg-7.1.1\\bin;C:\\Development\\vcpkg;C:\\Development\\vcpkg\\installed\\x64-windows\\tools\\pkgconf;C:\\Ruby32-x64\\bin;C:\\Program Files\\doxygen\\bin;C:\\Tools\\yt-dl;C:\\Tools\\Jom;C:\\Tools\\nasm-2.16.01;C:\\Tools\\Ninja;C:\\Tools\\gawk\\bin;C:\\Users\\lui\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\lui\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Program Files\\CMake\\bin;C:\\Program Files\\Graphviz\\bin;C:\\Users\\lui\\AppData\\Roaming\\npm;C:\\Users\\lui\\AppData\\Roaming\\Python\\Python314\\Scripts;C:\\Tools\\vcproj2cmake;C:\\Program Files (x86)\\Nmap;C:\\Tools\\iperf3.18_64;C:\\Tools\\ffmpeg-7.1.1\\bin;C:\\Development\\vcpkg;C:\\Development\\vcpkg\\installed\\x64-windows\\tools\\pkgconf;C:\\Ruby32-x64\\bin;C:\\Program Files\\doxygen\\bin;C:\\Tools\\yt-dl;C:\\Tools\\Jom;C:\\Tools\\nasm-2.16.01;C:\\Tools\\Ninja;C:\\Tools\\gawk\\bin;C:\\Users\\lui\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\lui\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Program Files\\CMake\\bin;C:\\Program Files\\Graphviz\\bin;C:\\Users\\lui\\AppData\\Roaming\\npm;C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\VC\\Tools\\Llvm\\x64\\bin;C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\Common7\\IDE\\CommonExtensions\\Microsoft\\CMake\\CMake\\bin;C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\Common7\\IDE\\CommonExtensions\\Microsoft\\CMake\\Ninja;C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\Common7\\IDE\\VC\\Linux\\bin\\ConnectionManagerExe","ProgramData":"C:\\ProgramData","ProgramFiles":"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)","ProgramW6432":"C:\\Program Files","SESSIONNAME":"Console","SystemDrive":"C:","SystemRoot":"C:\\windows","TEMP":"C:\\Users\\lui\\AppData\\Local\\Temp","TMP":"C:\\Users\\lui\\AppData\\Local\\Temp","USERDNSDOMAIN":"VIZRT.INTERNAL","USERDOMAIN":"VIZRTINT","USERDOMAIN_ROAMINGPROFILE":"VIZRTINT","USERNAME":"lui","USERPROFILE":"C:\\Users\\lui","VCPKG_DEFAULT_BINARY_CACHE":"D:\\vcpkg_bin_cache","VCPKG_ROOT":"C:\\Development\\vcpkg","VSCODE_CODE_CACHE_PATH":"C:\\Users\\lui\\AppData\\Roaming\\Code\\CachedData\\7d842fb85a0275a4a8e4d7e040d2625abbf7f084","VSCODE_CRASH_REPORTER_PROCESS_TYPE":"extensionHost","VSCODE_CWD":"C:\\Users\\lui\\AppData\\Local\\Programs\\Microsoft VS Code","VSCODE_DOTNET_INSTALL_TOOL_ORIGINAL_HOME":"undefined","VSCODE_ESM_ENTRYPOINT":"vs/workbench/api/node/extensionHostProcess","VSCODE_HANDLES_UNCAUGHT_ERRORS":"true","VSCODE_IPC_HOOK":"\\\\.\\pipe\\8b53468b-1.105.1-main-sock","VSCODE_L10N_BUNDLE_LOCATION":"","VSCODE_NLS_CONFIG":"{\"userLocale\":\"en-us\",\"osLocale\":\"pt-pt\",\"resolvedLanguage\":\"en\",\"defaultMessagesFile\":\"C:\\\\Users\\\\lui\\\\AppData\\\\Local\\\\Programs\\\\Microsoft VS Code\\\\resources\\\\app\\\\out\\\\nls.messages.json\",\"locale\":\"en-us\",\"availableLanguages\":{}}","VSCODE_PID":"34044","ZES_ENABLE_SYSMAN":"1","windir":"C:\\windows","DevEnvDir":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\Common7\\IDE\\","Framework40Version":"v4.0","FrameworkDir":"C:\\Windows\\Microsoft.NET\\Framework64\\","FrameworkDIR64":"C:\\Windows\\Microsoft.NET\\Framework64\\","FrameworkVersion":"v4.0.30319","FrameworkVersion64":"v4.0.30319","INCLUDE":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\VC\\Tools\\MSVC\\14.43.34808\\include;C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\VC\\Tools\\MSVC\\14.43.34808\\ATLMFC\\include;C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\VC\\Auxiliary\\VS\\include;C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.22621.0\\ucrt;C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\um;C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\shared;C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\winrt;C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\cppwinrt;C:\\Program Files (x86)\\Windows Kits\\NETFXSDK\\4.8\\include\\um","LIB":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\VC\\Tools\\MSVC\\14.43.34808\\ATLMFC\\lib\\x64;C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\VC\\Tools\\MSVC\\14.43.34808\\lib\\x64;C:\\Program Files (x86)\\Windows Kits\\NETFXSDK\\4.8\\lib\\um\\x64;C:\\Program Files (x86)\\Windows Kits\\10\\lib\\10.0.22621.0\\ucrt\\x64;C:\\Program Files (x86)\\Windows Kits\\10\\\\lib\\10.0.22621.0\\\\um\\x64","LIBPATH":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\VC\\Tools\\MSVC\\14.43.34808\\ATLMFC\\lib\\x64;C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\VC\\Tools\\MSVC\\14.43.34808\\lib\\x64;C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\VC\\Tools\\MSVC\\14.43.34808\\lib\\x86\\store\\references;C:\\Program Files (x86)\\Windows Kits\\10\\UnionMetadata\\10.0.22621.0;C:\\Program Files (x86)\\Windows Kits\\10\\References\\10.0.22621.0;C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319","NETFXSDKDir":"C:\\Program Files (x86)\\Windows Kits\\NETFXSDK\\4.8\\","UCRTVersion":"10.0.22621.0","UniversalCRTSdkDir":"C:\\Program Files (x86)\\Windows Kits\\10\\","VCIDEInstallDir":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\Common7\\IDE\\VC\\","VCINSTALLDIR":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\VC\\","VCToolsInstallDir":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\VC\\Tools\\MSVC\\14.43.34808\\","VCToolsRedistDir":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\VC\\Redist\\MSVC\\14.42.34433\\","VCToolsVersion":"14.43.34808","VisualStudioVersion":"17.0","VSINSTALLDIR":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\","WindowsLibPath":"C:\\Program Files (x86)\\Windows Kits\\10\\UnionMetadata\\10.0.22621.0;C:\\Program Files (x86)\\Windows Kits\\10\\References\\10.0.22621.0","WindowsSdkBinPath":"C:\\Program Files (x86)\\Windows Kits\\10\\bin\\","WindowsSdkDir":"C:\\Program Files (x86)\\Windows Kits\\10\\","WindowsSDKLibVersion":"10.0.22621.0\\","WindowsSDKVersion":"10.0.22621.0\\","WindowsSDK_ExecutablePath_x64":"C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v10.0A\\bin\\NETFX 4.8 Tools\\x64\\","WindowsSDK_ExecutablePath_x86":"C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v10.0A\\bin\\NETFX 4.8 Tools\\","VS170COMNTOOLS":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\Common7\\Tools","CC":"cl.exe","CXX":"cl.exe"}
[cmake] -- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.19045.
[cache] Reading CMake cache file D:/Development/videomixing-main.worktrees/lui-cmakify-workspace/cmake_build/build/vs-dynamic-debug/CMakeCache.txt
[cache] Parsing CMake cache string
[cmake] -- The CXX compiler identification is unknown
[cmake] -- The C compiler identification is unknown
[cmake] CMake Error at CMakeLists.txt:2 (project):
[cmake]   No CMAKE_CXX_COMPILER could be found.
[cmake] 
[cmake] 
[cmake] 
[cmake] CMake Error at CMakeLists.txt:2 (project):
[cmake]   No CMAKE_C_COMPILER could be found.
[cmake] 
[cmake] 
[cmake] 
[cmake] -- Configuring incomplete, errors occurred!
[proc] The command: "C:\Program Files\CMake\bin\cmake.EXE" -DCMAKE_BUILD_TYPE=Debug -DVCPKG_TARGET_TRIPLET=x64-windows-viz -DVCPKG_HOST_TRIPLET=x64-windows-viz -DCMAKE_INSTALL_PREFIX=D:/Development/videomixing-main.worktrees/lui-cmakify-workspace/out/install/vs-dynamic-debug -DVCPKG_INSTALLED_DIR=D:/Development/videomixing-main.worktrees/lui-cmakify-workspace/vcpkg_installed_vs -DVCPKG_MANIFEST_DIR=D:/Development/videomixing-main.worktrees/lui-cmakify-workspace/vcpkg -S D:/Development/videomixing-main.worktrees/lui-cmakify-workspace -B D:/Development/videomixing-main.worktrees/lui-cmakify-workspace/cmake_build/build/vs-dynamic-debug -G "Visual Studio 17 2022" -T host=x64 -A x64 exited with code: 1
[extension] [3628] cmake.configure finished (returned 1)

Additional Information

I can see the vsvars.bat variables are being set (thus vcvars.bat is being called) but for some reason cmake doesn't find the compiler

Also a not, I'm using the latest version of cmake (4.1.2). I don't know if this might have influenced this!

lppinto avatar Nov 06 '25 19:11 lppinto

@lppinto Thank you for reporting this issue. We tried creating a simple project and checking for this issue. The cl compiler can be found using the CMake included with Visual Studio. Please refer to this video. If we missed something, please let us know. Does this issue only reproduce in a specific project or in all projects? We look forward to your reply. Thank you.

Image

yanghhhhhhh avatar Nov 07 '25 09:11 yanghhhhhhh

@yanghhhhhhh thanks for the quick reply. I'll try to shift my build to use the Cmake binary that comes bundled with visual studio. I'm actually using the newest cmake 4.1.2, which is in the PATH. I don't know if this might have something to do with it. But I let you know about the result!

lppinto avatar Nov 07 '25 14:11 lppinto

@lppinto Thank you for your information. We tried to download and install CMake 4.1.2, but we still cannot reproduce the issue. Please refer to the video. If we misunderstood anything, please let us know. Thank you.

Image

yanghhhhhhh avatar Nov 11 '25 06:11 yanghhhhhhh