Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display CMake build command #4187

Open
tbsuht opened this issue Nov 26, 2024 · 12 comments
Open

Display CMake build command #4187

tbsuht opened this issue Nov 26, 2024 · 12 comments
Labels
more info needed More info is needed from the community for us to properly triage and investigate.

Comments

@tbsuht
Copy link

tbsuht commented Nov 26, 2024

Brief Issue Summary

While invoking my CMake build via the extension I'm running into a build failure and this output:

[build] Starting build
[driver] Start build 
[driver] Build completed: 00:00:00.000
[build] Build finished with exit code -1
[extension] [8800] cmake.build finished (returned -1)

I've already set "cmake.loggingLevel": "debug". I've currently no idea what is failing as running from a terminal is working fine.
I would like to know how cmake is called for building ... is that possible?

CMake Tools Diagnostics

Debug Log

Additional Information

No response

@Yingzi1234
Copy link
Collaborator

@tbsuht
Thank you for your Github issue! Please provide the reproduction procedure, it will help us reproduce your issue. Thank you!

@v-frankwang v-frankwang added more info needed More info is needed from the community for us to properly triage and investigate. and removed triage labels Nov 27, 2024
@tbsuht
Copy link
Author

tbsuht commented Nov 28, 2024

I'm using conan as a package manager in my example, install via pip install conan==2.9.3.
Make sure to have access to conancenter, as the example uses zlib: conan remote update conancenter --url="https://center2.conan.io"

Here is an example: https://github.com/tbsuht/test-cmake-tools.git
Conan will generate presets on the first run.
So on the first run I select the build type and clang as compiler.

Output:

[main] Building folder: /workspaces/dev/test-cmake-tools/build/Clang 14.0.6 x86_64-pc-linux-gnu/Release 
[main] Configuring project: test-cmake-tools 
[proc] Executing command: /usr/bin/cmake -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_PROJECT_TOP_LEVEL_INCLUDES:STRING=/workspaces/dev/test-cmake-tools/conan_provider.cmake -Dcmake.buildDirectory:STRING=/workspaces/dev/test-cmake-tools/build/Release -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/clang -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/clang++ --no-warn-unused-cli -S/workspaces/dev/test-cmake-tools "-B/workspaces/dev/test-cmake-tools/build/Clang 14.0.6 x86_64-pc-linux-gnu/Release" -G "Unix Makefiles"
[cmake] Not searching for unused variables given on the command line.
[cmake] -- The CXX compiler identification is Clang 14.0.6
[cmake] -- Detecting CXX compiler ABI info
[cmake] -- Detecting CXX compiler ABI info - done
[cmake] -- Check for working CXX compiler: /usr/bin/clang++ - skipped
[cmake] -- Detecting CXX compile features
[cmake] -- Detecting CXX compile features - done
[cmake] -- CMake-Conan: first find_package() found. Installing dependencies with Conan
[cmake] -- CMake-Conan: Installing single configuration Release
[cmake] -- CMake-Conan: conan install /workspaces/dev/test-cmake-tools  -pr:h;default;-pr:b;default;-s;build_type=Release;--build=missing;--update
[cmake] 
[cmake] ======== Input profiles ========
[cmake] Profile host:
[cmake] [settings]
[cmake] arch=x86_64
[cmake] build_type=Release
[cmake] compiler=gcc
[cmake] compiler.cppstd=gnu14
[cmake] compiler.libcxx=libstdc++11
[cmake] compiler.version=9
[cmake] os=Linux
[cmake] [conf]
[cmake] 
[cmake] 
[cmake] Profile build:
[cmake] [settings]
[cmake] arch=x86_64
[cmake] build_type=Release
[cmake] compiler=gcc
[cmake] compiler.cppstd=gnu14
[cmake] compiler.libcxx=libstdc++11
[cmake] compiler.version=9
[cmake] os=Linux
[cmake] [conf]
[cmake] 
[cmake] 
[cmake] 
[cmake] ======== Computing dependency graph ========
[cmake] zlib/1.3.1: Checking remote: x-conan-dev-local
[cmake] Graph root
[cmake]     conanfile.py (mypkg/0.1): /workspaces/dev/test-cmake-tools/conanfile.py
[cmake] Requirements
[cmake]     zlib/1.3.1#e20364c96c45455608a72543f3a53133 - Cache (x-conan-dev-local)
[cmake] 
[cmake] ======== Computing necessary packages ========
[cmake] zlib/1.3.1: WARN: Can't update, no package in remote
[cmake] Requirements
[cmake]     zlib/1.3.1#e20364c96c45455608a72543f3a53133:72c852c5f0ae27ca0b1741e5fd7c8b8be91a590a#4582e81e3df7af4510a67d7fdef67721 - Cache
[cmake] 
[cmake] ======== Installing packages ========
[cmake] zlib/1.3.1: Already installed! (1 of 1)
[cmake] WARN: deprecated: Usage of deprecated Conan 1.X features that will be removed in Conan 2.X:
[cmake] WARN: deprecated:     'cpp_info.names' used in: zlib/1.3.1
[cmake] 
[cmake] ======== Finalizing install (deploy, generators) ========
[cmake] conanfile.py (mypkg/0.1): Calling generate()
[cmake] conanfile.py (mypkg/0.1): Generators folder: /workspaces/dev/test-cmake-tools/build/Release/generators
[cmake] conanfile.py (mypkg/0.1): CMakeDeps necessary find_package() and targets for your CMakeLists.txt
[cmake]     find_package(ZLIB)
[cmake]     target_link_libraries(... ZLIB::ZLIB)
[cmake] conanfile.py (mypkg/0.1): CMakeToolchain generated: conan_toolchain.cmake
[cmake] conanfile.py (mypkg/0.1): CMakeToolchain: Preset 'conan-release' added to CMakePresets.json.
[cmake]     (cmake>=3.23) cmake --preset conan-release
[cmake]     (cmake<3.23) cmake <path> -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=generators/conan_toolchain.cmake  -DCMAKE_POLICY_DEFAULT_CMP0091=NEW -DCMAKE_BUILD_TYPE=Release
[cmake] conanfile.py (mypkg/0.1): CMakeToolchain generated: /workspaces/dev/test-cmake-tools/build/Release/generators/CMakePresets.json
[cmake] conanfile.py (mypkg/0.1): CMakeToolchain generated: /workspaces/dev/test-cmake-tools/CMakeUserPresets.json
[cmake] conanfile.py (mypkg/0.1): Generating aggregated env files
[cmake] conanfile.py (mypkg/0.1): Generated aggregated env files: ['conanbuild.sh', 'conanrun.sh']
[cmake] Install finished successfully
[presetController] Reading and validating the presets "file /workspaces/dev/test-cmake-tools/CMakeUserPresets.json"
[presetController] Successfully validated /workspaces/dev/test-cmake-tools/CMakeUserPresets.json against presets schema
[cmake] -- CMake-Conan: CONAN_GENERATORS_FOLDER=/workspaces/dev/test-cmake-tools/build/Release/generators
[cmake] -- CMake-Conan: CONANFILE=/workspaces/dev/test-cmake-tools/conanfile.py (mypkg/0.1)
[cmake] -- Conan: Target declared 'ZLIB::ZLIB'
[cmake] -- Configuring done
[cmake] -- Generating done
[cmake] -- Build files have been written to: /workspaces/dev/test-cmake-tools/build/Clang 14.0.6 x86_64-pc-linux-gnu/Release
[presetController] Reading and validating the presets "file /workspaces/dev/test-cmake-tools/build/Release/generators/CMakePresets.json"
[presetController] Successfully validated /workspaces/dev/test-cmake-tools/build/Release/generators/CMakePresets.json against presets schema
[presetController] Expanding presets file /workspaces/dev/test-cmake-tools/CMakeUserPresets.json
[presetController] Successfully expanded presets file /workspaces/dev/test-cmake-tools/CMakeUserPresets.json
[cpptools] The build configurations generated do not contain the active build configuration. Using "Release" for CMAKE_BUILD_TYPE instead of "null" to ensure that IntelliSense configurations can be found
[build] Starting build
[driver] Build completed: 00:00:00.000
[build] Build finished with exit code -1

Afterwards I can select the preset in the panel below but this is also failing.

[main] Building folder: /workspaces/dev/test-cmake-tools/build/Release 
[main] Configuring project: test-cmake-tools 
[proc] Executing command: /usr/bin/cmake -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_PROJECT_TOP_LEVEL_INCLUDES:STRING=/workspaces/dev/test-cmake-tools/conan_provider.cmake -Dcmake.buildDirectory:STRING=/workspaces/dev/test-cmake-tools/build/Release -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/clang -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/clang++ --no-warn-unused-cli -S/workspaces/dev/test-cmake-tools "-B/workspaces/dev/test-cmake-tools/build/Clang 14.0.6 x86_64-pc-linux-gnu/Release" -G "Unix Makefiles"
[cmake] Not searching for unused variables given on the command line.
[cmake] -- CMake-Conan: first find_package() found. Installing dependencies with Conan
[cmake] -- CMake-Conan: Installing single configuration Release
[cmake] -- CMake-Conan: conan install /workspaces/dev/test-cmake-tools  -pr:h;default;-pr:b;default;-s;build_type=Release;--build=missing;--update
[cmake] 
[cmake] ======== Input profiles ========
[cmake] Profile host:
[cmake] [settings]
[cmake] arch=x86_64
[cmake] build_type=Release
[cmake] compiler=gcc
[cmake] compiler.cppstd=gnu14
[cmake] compiler.libcxx=libstdc++11
[cmake] compiler.version=9
[cmake] os=Linux
[cmake] [conf]
[cmake] 
[cmake] 
[cmake] Profile build:
[cmake] [settings]
[cmake] arch=x86_64
[cmake] build_type=Release
[cmake] compiler=gcc
[cmake] compiler.cppstd=gnu14
[cmake] compiler.libcxx=libstdc++11
[cmake] compiler.version=9
[cmake] os=Linux
[cmake] [conf]
[cmake] 
[cmake] 
[cmake] 
[cmake] ======== Computing dependency graph ========
[cmake] zlib/1.3.1: Checking remote: x-conan-dev-local
[cmake] Graph root
[cmake]     conanfile.py (mypkg/0.1): /workspaces/dev/test-cmake-tools/conanfile.py
[cmake] Requirements
[cmake]     zlib/1.3.1#e20364c96c45455608a72543f3a53133 - Cache (x-conan-dev-local)
[cmake] 
[cmake] ======== Computing necessary packages ========
[cmake] zlib/1.3.1: WARN: Can't update, no package in remote
[cmake] Requirements
[cmake]     zlib/1.3.1#e20364c96c45455608a72543f3a53133:72c852c5f0ae27ca0b1741e5fd7c8b8be91a590a#4582e81e3df7af4510a67d7fdef67721 - Cache
[cmake] 
[cmake] ======== Installing packages ========
[cmake] zlib/1.3.1: Already installed! (1 of 1)
[cmake] WARN: deprecated: Usage of deprecated Conan 1.X features that will be removed in Conan 2.X:
[cmake] WARN: deprecated:     'cpp_info.names' used in: zlib/1.3.1
[cmake] 
[cmake] ======== Finalizing install (deploy, generators) ========
[cmake] conanfile.py (mypkg/0.1): Calling generate()
[cmake] conanfile.py (mypkg/0.1): Generators folder: /workspaces/dev/test-cmake-tools/build/Release/generators
[cmake] conanfile.py (mypkg/0.1): CMakeDeps necessary find_package() and targets for your CMakeLists.txt
[cmake]     find_package(ZLIB)
[cmake]     target_link_libraries(... ZLIB::ZLIB)
[cmake] conanfile.py (mypkg/0.1): CMakeToolchain generated: conan_toolchain.cmake
[cmake] conanfile.py (mypkg/0.1): CMakeToolchain: Preset 'conan-release' added to CMakePresets.json.
[cmake]     (cmake>=3.23) cmake --preset conan-release
[cmake]     (cmake<3.23) cmake <path> -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=generators/conan_toolchain.cmake  -DCMAKE_POLICY_DEFAULT_CMP0091=NEW -DCMAKE_BUILD_TYPE=Release
[cmake] conanfile.py (mypkg/0.1): CMakeToolchain generated: /workspaces/dev/test-cmake-tools/build/Release/generators/CMakePresets.json
[cmake] conanfile.py (mypkg/0.1): CMakeToolchain generated: /workspaces/dev/test-cmake-tools/CMakeUserPresets.json
[cmake] conanfile.py (mypkg/0.1): Generating aggregated env files
[cmake] conanfile.py (mypkg/0.1): Generated aggregated env files: ['conanbuild.sh', 'conanrun.sh']
[cmake] Install finished successfully
[presetController] Reading and validating the presets "file /workspaces/dev/test-cmake-tools/CMakeUserPresets.json"
[presetController] Successfully validated /workspaces/dev/test-cmake-tools/CMakeUserPresets.json against presets schema
[cmake] -- CMake-Conan: CONAN_GENERATORS_FOLDER=/workspaces/dev/test-cmake-tools/build/Release/generators
[cmake] -- CMake-Conan: CONANFILE=/workspaces/dev/test-cmake-tools/conanfile.py (mypkg/0.1)
[cmake] -- Conan: Target declared 'ZLIB::ZLIB'
[cmake] -- Configuring done
[cmake] -- Generating done
[cmake] -- Build files have been written to: /workspaces/dev/test-cmake-tools/build/Clang 14.0.6 x86_64-pc-linux-gnu/Release
[presetController] Reading and validating the presets "file /workspaces/dev/test-cmake-tools/build/Release/generators/CMakePresets.json"
[presetController] Successfully validated /workspaces/dev/test-cmake-tools/build/Release/generators/CMakePresets.json against presets schema
[presetController] Expanding presets file /workspaces/dev/test-cmake-tools/CMakeUserPresets.json
[presetController] Successfully expanded presets file /workspaces/dev/test-cmake-tools/CMakeUserPresets.json
[driver] Switching to configure preset: conan-release
[driver] Switching to build preset: conan-release
[driver] Switching to test preset: conan-release
[driver] Switching to package preset: __defaultPackagePreset__
[driver] Switching to workflow preset: __defaultWorkflowPreset__
[build] Starting build
[driver] Build completed: 00:00:00.000
[build] Build finished with exit code -1

@Yingzi1234
Copy link
Collaborator

@tbsuht When I clone this repo after my environment is configured and start configuring it, my config here fails, but when I remove the line of code that is reporting the error my configure and build both succeed! Same result on your end?
Image

@tbsuht
Copy link
Author

tbsuht commented Nov 29, 2024

Hm no, this is not failing. What's the output?

@Yingzi1234
Copy link
Collaborator

Yingzi1234 commented Nov 29, 2024

You can get the output log below:

After configure:

[main] Configuring project: test-cmake-tools 
[main] Saving open files before configure/build
[expand] expanded ${workspaceFolder}/build
[driver] Start configure 
[driver] Running pre-configure checks and steps
[expand] expanded -DCMAKE_PROJECT_TOP_LEVEL_INCLUDES:STRING=${workspaceFolder}/conan_provider.cmake
[expand] expanded -Dcmake.buildDirectory:STRING=${workspaceFolder}/build/${buildType}
[expand] expanded ${workspaceFolder}/build
[cmakefileapi-driver] Configuring using kit
[cmakefileapi-driver] Invoking CMake C:\Program Files\Microsoft Visual Studio\2022\Preview\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.EXE with arguments ["-DCMAKE_PROJECT_TOP_LEVEL_INCLUDES:STRING=c:/Users/v-cathyzhang/test-cmake-tools/conan_provider.cmake","-Dcmake.buildDirectory:STRING=c:/Users/v-cathyzhang/test-cmake-tools/build/Debug","-DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE","DFOO=bar","--no-warn-unused-cli","-SC:/Users/v-cathyzhang/test-cmake-tools","-Bc:/Users/v-cathyzhang/test-cmake-tools/build","-G","Visual Studio 17 2022","-T","host=x86","-A","win32"]
[proc] Executing command: "C:\Program Files\Microsoft Visual Studio\2022\Preview\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.EXE" -DCMAKE_PROJECT_TOP_LEVEL_INCLUDES:STRING=c:/Users/v-cathyzhang/test-cmake-tools/conan_provider.cmake -Dcmake.buildDirectory:STRING=c:/Users/v-cathyzhang/test-cmake-tools/build/Debug -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE DFOO=bar --no-warn-unused-cli -SC:/Users/v-cathyzhang/test-cmake-tools -Bc:/Users/v-cathyzhang/test-cmake-tools/build -G "Visual Studio 17 2022" -T host=x86 -A win32
[proc]   with environment: {"ALLUSERSPROFILE":"C:\\ProgramData","APPDATA":"C:\\Users\\v-cathyzhang\\AppData\\Roaming","APPLICATIONINSIGHTS_CONFIGURATION_CONTENT":"{}","APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL":"1","CHROME_CRASHPAD_PIPE_NAME":"\\\\.\\pipe\\crashpad_8632_EWYOPVDZGHTRWNHP","CLIENTNAME":"MININT-4V16MFE","COMPUTERNAME":"vcathyzhang004","CUDA_PATH":"C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.6","CUDA_PATH_V12_6":"C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.6","ChocolateyInstall":"C:\\ProgramData\\chocolatey","ComSpec":"C:\\Windows\\system32\\cmd.exe","CommandPromptType":"Native","CommonProgramFiles":"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files","CommonProgramW6432":"C:\\Program Files\\Common Files","DevEnvDir":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\IDE\\","DriverData":"C:\\Windows\\System32\\Drivers\\DriverData","EFC_8868":"1","ELECTRON_NO_ATTACH_CONSOLE":"1","ELECTRON_RUN_AS_NODE":"1","EXTERNAL_INCLUDE":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.42.34432\\include;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.42.34432\\ATLMFC\\include;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\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.6.1\\include\\um","ExtensionSdkDir":"C:\\Program Files (x86)\\Microsoft SDKs\\Windows Kits\\10\\ExtensionSDKs","FPS_BROWSER_APP_PROFILE_STRING":"Internet Explorer","FPS_BROWSER_USER_PROFILE_STRING":"Default","Framework40Version":"v4.0","FrameworkDIR32":"C:\\Windows\\Microsoft.NET\\Framework\\","FrameworkDir":"C:\\Windows\\Microsoft.NET\\Framework\\","FrameworkVersion":"v4.0.30319","FrameworkVersion32":"v4.0.30319","HOMEDRIVE":"C:","HOMEPATH":"\\Users\\v-cathyzhang","INCLUDE":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.42.34432\\include;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.42.34432\\ATLMFC\\include;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\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.6.1\\include\\um","LIB":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.42.34432\\ATLMFC\\lib\\x86;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.42.34432\\lib\\x86;C:\\Program Files (x86)\\Windows Kits\\NETFXSDK\\4.6.1\\lib\\um\\x86;C:\\Program Files (x86)\\Windows Kits\\10\\lib\\10.0.22621.0\\ucrt\\x86;C:\\Program Files (x86)\\Windows Kits\\10\\\\lib\\10.0.22621.0\\\\um\\x86;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.42.34432\\ATLMFC\\lib\\x86;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.42.34432\\lib\\x86;C:\\Program Files (x86)\\Windows Kits\\NETFXSDK\\4.6.1\\lib\\um\\x86;C:\\Program Files (x86)\\Windows Kits\\10\\lib\\10.0.22621.0\\ucrt\\x86;C:\\Program Files (x86)\\Windows Kits\\10\\\\lib\\10.0.22621.0\\\\um\\x86","LIBPATH":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.42.34432\\ATLMFC\\lib\\x86;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.42.34432\\lib\\x86;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.42.34432\\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\\Framework\\v4.0.30319;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.42.34432\\ATLMFC\\lib\\x86;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.42.34432\\lib\\x86;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.42.34432\\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\\Framework\\v4.0.30319","LOCALAPPDATA":"C:\\Users\\v-cathyzhang\\AppData\\Local","LOGONSERVER":"\\\\vcathyzhang004","NETFXSDKDir":"C:\\Program Files (x86)\\Windows Kits\\NETFXSDK\\4.6.1\\","NUMBER_OF_PROCESSORS":"4","ORIGINAL_XDG_CURRENT_DESKTOP":"undefined","OS":"Windows_NT","OneDrive":"C:\\Users\\v-cathyzhang\\OneDrive - Microsoft","OneDriveCommercial":"C:\\Users\\v-cathyzhang\\OneDrive - Microsoft","PATHEXT":".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC","PROCESSOR_ARCHITECTURE":"AMD64","PROCESSOR_IDENTIFIER":"AMD64 Family 25 Model 1 Stepping 1, AuthenticAMD","PROCESSOR_LEVEL":"25","PROCESSOR_REVISION":"0101","PROMPT":"$P$G","PSModulePath":"C:\\Program Files\\WindowsPowerShell\\Modules;C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules;C:\\Program Files\\Microsoft Monitoring Agent\\Agent\\PowerShell\\","PUBLIC":"C:\\Users\\Public","Path":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.42.34432\\bin\\HostX86\\x86;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\IDE\\VC\\VCPackages;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\IDE\\CommonExtensions\\Microsoft\\TestWindow;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\IDE\\CommonExtensions\\Microsoft\\TeamFoundation\\Team Explorer;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\MSBuild\\Current\\bin\\Roslyn;C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v10.0A\\bin\\NETFX 4.6.1 Tools\\;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Team Tools\\DiagnosticsHub\\Collector;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\IDE\\Extensions\\Microsoft\\CodeCoverage.Console;C:\\Program Files (x86)\\Windows Kits\\10\\bin\\10.0.22621.0\\\\x86;C:\\Program Files (x86)\\Windows Kits\\10\\bin\\\\x86;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\\\MSBuild\\Current\\Bin\\amd64;C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\IDE\\;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\Tools\\;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.42.34432\\bin\\HostX86\\x86;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\IDE\\VC\\VCPackages;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\IDE\\CommonExtensions\\Microsoft\\TestWindow;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\IDE\\CommonExtensions\\Microsoft\\TeamFoundation\\Team Explorer;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\MSBuild\\Current\\bin\\Roslyn;C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v10.0A\\bin\\NETFX 4.6.1 Tools\\;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Team Tools\\DiagnosticsHub\\Collector;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\IDE\\Extensions\\Microsoft\\CodeCoverage.Console;C:\\Program Files (x86)\\Windows Kits\\10\\bin\\10.0.22621.0\\\\x86;C:\\Program Files (x86)\\Windows Kits\\10\\bin\\\\x86;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\\\MSBuild\\Current\\Bin\\amd64;C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\IDE\\;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\Tools\\;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.6\\bin;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.6\\libnvvp;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\ProgramData\\chocolatey;C:\\msys64\\ucrt64\\bin;C:\\msys64\\mingw64\\bin;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\Microsoft SQL Server\\150\\Tools\\Binn\\;C:\\Program Files (x86)\\Windows Kits\\10\\Windows Performance Toolkit\\;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\IDE\\CommonExtensions\\Microsoft\\CMake\\CMake\\bin;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\IDE\\CommonExtensions\\Microsoft\\CMake\\Ninja\\ninja.exe;C:\\Users\\v-cathyzhang\\Downloads\\ninja-win\\ninja.exe;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\Program Files\\NVIDIA Corporation\\Nsight Compute 2024.3.2\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.6\\bin;C:\\Users\\v-cathyzhang\\Downloads\\eigen-3.4.0\\eigen-3.4.0;C:\\Program Files\\Git\\cmd;C:\\Users\\v-cathyzhang\\AppData\\Local\\Programs\\Python\\Python313\\Scripts\\;C:\\Users\\v-cathyzhang\\AppData\\Local\\Programs\\Python\\Python313\\;C:\\Users\\v-cathyzhang\\AppData\\Local\\Programs\\Python\\Launcher\\;C:\\Users\\v-cathyzhang\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\v-cathyzhang\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\v-cathyzhang\\.dotnet\\tools;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\IDE\\CommonExtensions\\Microsoft\\CMake\\CMake\\bin;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\IDE\\CommonExtensions\\Microsoft\\CMake\\Ninja;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\IDE\\VC\\Linux\\bin\\ConnectionManagerExe;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\vcpkg;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\IDE\\CommonExtensions\\Microsoft\\CMake\\CMake\\bin;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\IDE\\CommonExtensions\\Microsoft\\CMake\\Ninja;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\IDE\\VC\\Linux\\bin\\ConnectionManagerExe;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\vcpkg","ProgramData":"C:\\ProgramData","ProgramFiles":"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)","ProgramW6432":"C:\\Program Files","SESSIONNAME":"RDP-Tcp#0","SystemDrive":"C:","SystemRoot":"C:\\Windows","TEMP":"C:\\Users\\V-CATH~1\\AppData\\Local\\Temp","TMP":"C:\\Users\\V-CATH~1\\AppData\\Local\\Temp","UATDATA":"C:\\Windows\\CCM\\UATData\\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77","UCRTVersion":"10.0.22621.0","USERDNSDOMAIN":"fareast.corp.microsoft.com","USERDOMAIN":"FAREAST","USERDOMAIN_ROAMINGPROFILE":"FAREAST","USERNAME":"v-cathyzhang","USERPROFILE":"C:\\Users\\v-cathyzhang","UniversalCRTSdkDir":"C:\\Program Files (x86)\\Windows Kits\\10\\","VCIDEInstallDir":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\IDE\\VC\\","VCINSTALLDIR":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\","VCPKG_ROOT":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\vcpkg","VCToolsInstallDir":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.42.34432\\","VCToolsRedistDir":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Redist\\MSVC\\14.42.34430\\","VCToolsVersion":"14.42.34432","VS140COMNTOOLS":"C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\Tools\\","VS170COMNTOOLS":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\Tools","VSCMD_ARG_HOST_ARCH":"x86","VSCMD_ARG_TGT_ARCH":"x86","VSCMD_ARG_app_plat":"Desktop","VSCMD_VER":"17.13.0-pre.2.0","VSCODE_CLI":"1","VSCODE_CODE_CACHE_PATH":"C:\\Users\\v-cathyzhang\\AppData\\Roaming\\Code\\CachedData\\f1a4fb101478ce6ec82fe9627c43efbf9e98c813","VSCODE_CRASH_REPORTER_PROCESS_TYPE":"extensionHost","VSCODE_CWD":"C:\\Users\\v-cathyzhang\\test-cmake-tools","VSCODE_ESM_ENTRYPOINT":"vs/workbench/api/node/extensionHostProcess","VSCODE_HANDLES_UNCAUGHT_ERRORS":"true","VSCODE_IPC_HOOK":"\\\\.\\pipe\\95fbdd7e-1.95.3-main-sock","VSCODE_NLS_CONFIG":"{\"userLocale\":\"en\",\"osLocale\":\"zh-cn\",\"resolvedLanguage\":\"en\",\"defaultMessagesFile\":\"C:\\\\Users\\\\v-cathyzhang\\\\AppData\\\\Local\\\\Programs\\\\Microsoft VS Code\\\\resources\\\\app\\\\out\\\\nls.messages.json\",\"locale\":\"en\",\"availableLanguages\":{}}","VSCODE_PID":"8632","VSINSTALLDIR":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\","VisualStudioVersion":"17.0","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","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.6.1 Tools\\x64\\","WindowsSDK_ExecutablePath_x86":"C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v10.0A\\bin\\NETFX 4.6.1 Tools\\","WindowsSdkBinPath":"C:\\Program Files (x86)\\Windows Kits\\10\\bin\\","WindowsSdkDir":"C:\\Program Files (x86)\\Windows Kits\\10\\","WindowsSdkVerBinPath":"C:\\Program Files (x86)\\Windows Kits\\10\\bin\\10.0.22621.0\\","__DOTNET_ADD_32BIT":"1","__DOTNET_PREFERRED_BITNESS":"32","__VSCMD_PREINIT_PATH":"C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.6\\bin;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.6\\libnvvp;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\ProgramData\\chocolatey;C:\\msys64\\ucrt64\\bin;C:\\msys64\\mingw64\\bin;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\Microsoft SQL Server\\150\\Tools\\Binn\\;C:\\Program Files (x86)\\Windows Kits\\10\\Windows Performance Toolkit\\;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\IDE\\CommonExtensions\\Microsoft\\CMake\\CMake\\bin;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\IDE\\CommonExtensions\\Microsoft\\CMake\\Ninja\\ninja.exe;C:\\Users\\v-cathyzhang\\Downloads\\ninja-win\\ninja.exe;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\Program Files\\NVIDIA Corporation\\Nsight Compute 2024.3.2\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.6\\bin;C:\\Users\\v-cathyzhang\\Downloads\\eigen-3.4.0\\eigen-3.4.0;C:\\Program Files\\Git\\cmd;C:\\Users\\v-cathyzhang\\AppData\\Local\\Programs\\Python\\Python313\\Scripts\\;C:\\Users\\v-cathyzhang\\AppData\\Local\\Programs\\Python\\Python313\\;C:\\Users\\v-cathyzhang\\AppData\\Local\\Programs\\Python\\Launcher\\;C:\\Users\\v-cathyzhang\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\v-cathyzhang\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\v-cathyzhang\\.dotnet\\tools","windir":"C:\\Windows","CC":"cl.exe","CXX":"cl.exe"}
[cmake] Not searching for unused variables given on the command line.
[cmake] CMake Warning:
[cmake]   Ignoring extra path from command line:
[cmake] 
[cmake]    "C:/Users/v-cathyzhang/test-cmake-tools/build/DFOO=bar"
[cmake] 
[cmake] 
[cmake] -- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22631.
[cmake] -- CMake-Conan: first find_package() found. Installing dependencies with Conan
[cmake] -- CMake-Conan: Installing both Debug and Release
[cmake] -- CMake-Conan: conan install C:/Users/v-cathyzhang/test-cmake-tools  -pr:h;default-pr:b;default;-s;build_type=Release;--build=missing;--update
[cmake] usage: conan install [-h] [-v [V]] [-cc CORE_CONF] [-f FORMAT] [--name NAME]
[cmake]                      [--version VERSION] [--user USER] [--channel CHANNEL]
[cmake]                      [--requires REQUIRES] [--tool-requires TOOL_REQUIRES]
[cmake]                      [-b BUILD] [-r REMOTE | -nr] [-u [UPDATE]] [-pr PROFILE]
[cmake]                      [-pr:b PROFILE_BUILD] [-pr:h PROFILE_HOST]
[cmake]                      [-pr:a PROFILE_ALL] [-o OPTIONS] [-o:b OPTIONS_BUILD]
[cmake]                      [-o:h OPTIONS_HOST] [-o:a OPTIONS_ALL] [-s SETTINGS]
[cmake]                      [-s:b SETTINGS_BUILD] [-s:h SETTINGS_HOST]
[cmake]                      [-s:a SETTINGS_ALL] [-c CONF] [-c:b CONF_BUILD]
[cmake]                      [-c:h CONF_HOST] [-c:a CONF_ALL] [-l LOCKFILE]
[cmake]                      [--lockfile-partial] [--lockfile-out LOCKFILE_OUT]
[cmake]                      [--lockfile-clean]
[cmake]                      [--lockfile-overrides LOCKFILE_OVERRIDES] [-g GENERATOR]
[cmake]                      [-of OUTPUT_FOLDER] [-d DEPLOYER]
[cmake]                      [--deployer-folder DEPLOYER_FOLDER]
[cmake]                      [--deployer-package DEPLOYER_PACKAGE] [--build-require]
[cmake]                      [--envs-generation {false}]
[cmake]                      [path]
[cmake] conan install: error: unrecognized arguments: default
[cmake] ERROR: Exiting with code: 2
[cmake] CMake Error at conan_provider.cmake:16 (message):
[cmake]   Conan install failed='2'
[cmake] Call Stack (most recent call first):
[cmake]   conan_provider.cmake:44 (conan_install)
[cmake]   CMakeLists.txt:4 (find_package)
[cmake] 
[cmake] 
[cmake] -- Configuring incomplete, errors occurred!
[proc] The command: "C:\Program Files\Microsoft Visual Studio\2022\Preview\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.EXE" -DCMAKE_PROJECT_TOP_LEVEL_INCLUDES:STRING=c:/Users/v-cathyzhang/test-cmake-tools/conan_provider.cmake -Dcmake.buildDirectory:STRING=c:/Users/v-cathyzhang/test-cmake-tools/build/Debug -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE DFOO=bar --no-warn-unused-cli -SC:/Users/v-cathyzhang/test-cmake-tools -Bc:/Users/v-cathyzhang/test-cmake-tools/build -G "Visual Studio 17 2022" -T host=x86 -A win32 exited with code: 1
[visual-studio] OK running C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Auxiliary\Build\vcvarsall.bat x86 , env vars: {"DevEnvDir":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\IDE\\","Framework40Version":"v4.0","FrameworkDir":"C:\\Windows\\Microsoft.NET\\Framework\\","FrameworkDIR32":"C:\\Windows\\Microsoft.NET\\Framework\\","FrameworkVersion":"v4.0.30319","FrameworkVersion32":"v4.0.30319","INCLUDE":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.42.34432\\include;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.42.34432\\ATLMFC\\include;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\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.6.1\\include\\um","LIB":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.42.34432\\ATLMFC\\lib\\x86;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.42.34432\\lib\\x86;C:\\Program Files (x86)\\Windows Kits\\NETFXSDK\\4.6.1\\lib\\um\\x86;C:\\Program Files (x86)\\Windows Kits\\10\\lib\\10.0.22621.0\\ucrt\\x86;C:\\Program Files (x86)\\Windows Kits\\10\\\\lib\\10.0.22621.0\\\\um\\x86;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.42.34432\\ATLMFC\\lib\\x86;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.42.34432\\lib\\x86;C:\\Program Files (x86)\\Windows Kits\\NETFXSDK\\4.6.1\\lib\\um\\x86;C:\\Program Files (x86)\\Windows Kits\\10\\lib\\10.0.22621.0\\ucrt\\x86;C:\\Program Files (x86)\\Windows Kits\\10\\\\lib\\10.0.22621.0\\\\um\\x86","LIBPATH":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.42.34432\\ATLMFC\\lib\\x86;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.42.34432\\lib\\x86;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.42.34432\\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\\Framework\\v4.0.30319;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.42.34432\\ATLMFC\\lib\\x86;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.42.34432\\lib\\x86;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.42.34432\\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\\Framework\\v4.0.30319","NETFXSDKDir":"C:\\Program Files (x86)\\Windows Kits\\NETFXSDK\\4.6.1\\","Path":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.42.34432\\bin\\HostX86\\x86;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\IDE\\VC\\VCPackages;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\IDE\\CommonExtensions\\Microsoft\\TestWindow;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\IDE\\CommonExtensions\\Microsoft\\TeamFoundation\\Team Explorer;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\MSBuild\\Current\\bin\\Roslyn;C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v10.0A\\bin\\NETFX 4.6.1 Tools\\;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Team Tools\\DiagnosticsHub\\Collector;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\IDE\\Extensions\\Microsoft\\CodeCoverage.Console;C:\\Program Files (x86)\\Windows Kits\\10\\bin\\10.0.22621.0\\\\x86;C:\\Program Files (x86)\\Windows Kits\\10\\bin\\\\x86;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\\\MSBuild\\Current\\Bin\\amd64;C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\IDE\\;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\Tools\\;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.42.34432\\bin\\HostX86\\x86;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\IDE\\VC\\VCPackages;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\IDE\\CommonExtensions\\Microsoft\\TestWindow;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\IDE\\CommonExtensions\\Microsoft\\TeamFoundation\\Team Explorer;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\MSBuild\\Current\\bin\\Roslyn;C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v10.0A\\bin\\NETFX 4.6.1 Tools\\;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Team Tools\\DiagnosticsHub\\Collector;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\IDE\\Extensions\\Microsoft\\CodeCoverage.Console;C:\\Program Files (x86)\\Windows Kits\\10\\bin\\10.0.22621.0\\\\x86;C:\\Program Files (x86)\\Windows Kits\\10\\bin\\\\x86;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\\\MSBuild\\Current\\Bin\\amd64;C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\IDE\\;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\Tools\\;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.6\\bin;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.6\\libnvvp;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\ProgramData\\chocolatey;C:\\msys64\\ucrt64\\bin;C:\\msys64\\mingw64\\bin;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\Microsoft SQL Server\\150\\Tools\\Binn\\;C:\\Program Files (x86)\\Windows Kits\\10\\Windows Performance Toolkit\\;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\IDE\\CommonExtensions\\Microsoft\\CMake\\CMake\\bin;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\IDE\\CommonExtensions\\Microsoft\\CMake\\Ninja\\ninja.exe;C:\\Users\\v-cathyzhang\\Downloads\\ninja-win\\ninja.exe;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\Program Files\\NVIDIA Corporation\\Nsight Compute 2024.3.2\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.6\\bin;C:\\Users\\v-cathyzhang\\Downloads\\eigen-3.4.0\\eigen-3.4.0;C:\\Program Files\\Git\\cmd;C:\\Users\\v-cathyzhang\\AppData\\Local\\Programs\\Python\\Python313\\Scripts\\;C:\\Users\\v-cathyzhang\\AppData\\Local\\Programs\\Python\\Python313\\;C:\\Users\\v-cathyzhang\\AppData\\Local\\Programs\\Python\\Launcher\\;C:\\Users\\v-cathyzhang\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\v-cathyzhang\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\v-cathyzhang\\.dotnet\\tools;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\IDE\\CommonExtensions\\Microsoft\\CMake\\CMake\\bin;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\IDE\\CommonExtensions\\Microsoft\\CMake\\Ninja;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\IDE\\VC\\Linux\\bin\\ConnectionManagerExe;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\vcpkg;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\IDE\\CommonExtensions\\Microsoft\\CMake\\CMake\\bin;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\IDE\\CommonExtensions\\Microsoft\\CMake\\Ninja;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\IDE\\VC\\Linux\\bin\\ConnectionManagerExe;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\vcpkg","UCRTVersion":"10.0.22621.0","UniversalCRTSdkDir":"C:\\Program Files (x86)\\Windows Kits\\10\\","VCIDEInstallDir":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\IDE\\VC\\","VCINSTALLDIR":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\","VCToolsInstallDir":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.42.34432\\","VCToolsRedistDir":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Redist\\MSVC\\14.42.34430\\","VCToolsVersion":"14.42.34432","VisualStudioVersion":"17.0","VSINSTALLDIR":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\","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.6.1 Tools\\x64\\","WindowsSDK_ExecutablePath_x86":"C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v10.0A\\bin\\NETFX 4.6.1 Tools\\","TMP":"C:\\Users\\V-CATH~1\\AppData\\Local\\Temp"}
[extension] [7571] cmake.configure finished (returned 1)

@Yingzi1234
Copy link
Collaborator

You can get the output log below:
After build:

[main] Building folder: c:/Users/v-cathyzhang/test-cmake-tools/build 
[main] Saving open files before configure/build
[build] Starting build
[driver] Start build ALL_BUILD
[proc] Executing command: "C:\Program Files\Microsoft Visual Studio\2022\Preview\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.EXE" --build c:/Users/v-cathyzhang/test-cmake-tools/build --config Debug --target ALL_BUILD -j 6 --
[proc]   with environment: {"ALLUSERSPROFILE":"C:\\ProgramData","APPDATA":"C:\\Users\\v-cathyzhang\\AppData\\Roaming","APPLICATIONINSIGHTS_CONFIGURATION_CONTENT":"{}","APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL":"1","CHROME_CRASHPAD_PIPE_NAME":"\\\\.\\pipe\\crashpad_8632_EWYOPVDZGHTRWNHP","CLIENTNAME":"MININT-4V16MFE","COMPUTERNAME":"vcathyzhang004","CUDA_PATH":"C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.6","CUDA_PATH_V12_6":"C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.6","ChocolateyInstall":"C:\\ProgramData\\chocolatey","ComSpec":"C:\\Windows\\system32\\cmd.exe","CommandPromptType":"Native","CommonProgramFiles":"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files","CommonProgramW6432":"C:\\Program Files\\Common Files","DevEnvDir":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\IDE\\","DriverData":"C:\\Windows\\System32\\Drivers\\DriverData","EFC_8868":"1","ELECTRON_NO_ATTACH_CONSOLE":"1","ELECTRON_RUN_AS_NODE":"1","EXTERNAL_INCLUDE":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.42.34432\\include;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.42.34432\\ATLMFC\\include;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\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.6.1\\include\\um","ExtensionSdkDir":"C:\\Program Files (x86)\\Microsoft SDKs\\Windows Kits\\10\\ExtensionSDKs","FPS_BROWSER_APP_PROFILE_STRING":"Internet Explorer","FPS_BROWSER_USER_PROFILE_STRING":"Default","Framework40Version":"v4.0","FrameworkDIR32":"C:\\Windows\\Microsoft.NET\\Framework\\","FrameworkDir":"C:\\Windows\\Microsoft.NET\\Framework\\","FrameworkVersion":"v4.0.30319","FrameworkVersion32":"v4.0.30319","HOMEDRIVE":"C:","HOMEPATH":"\\Users\\v-cathyzhang","INCLUDE":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.42.34432\\include;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.42.34432\\ATLMFC\\include;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\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.6.1\\include\\um","LIB":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.42.34432\\ATLMFC\\lib\\x86;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.42.34432\\lib\\x86;C:\\Program Files (x86)\\Windows Kits\\NETFXSDK\\4.6.1\\lib\\um\\x86;C:\\Program Files (x86)\\Windows Kits\\10\\lib\\10.0.22621.0\\ucrt\\x86;C:\\Program Files (x86)\\Windows Kits\\10\\\\lib\\10.0.22621.0\\\\um\\x86;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.42.34432\\ATLMFC\\lib\\x86;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.42.34432\\lib\\x86;C:\\Program Files (x86)\\Windows Kits\\NETFXSDK\\4.6.1\\lib\\um\\x86;C:\\Program Files (x86)\\Windows Kits\\10\\lib\\10.0.22621.0\\ucrt\\x86;C:\\Program Files (x86)\\Windows Kits\\10\\\\lib\\10.0.22621.0\\\\um\\x86","LIBPATH":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.42.34432\\ATLMFC\\lib\\x86;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.42.34432\\lib\\x86;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.42.34432\\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\\Framework\\v4.0.30319;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.42.34432\\ATLMFC\\lib\\x86;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.42.34432\\lib\\x86;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.42.34432\\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\\Framework\\v4.0.30319","LOCALAPPDATA":"C:\\Users\\v-cathyzhang\\AppData\\Local","LOGONSERVER":"\\\\vcathyzhang004","NETFXSDKDir":"C:\\Program Files (x86)\\Windows Kits\\NETFXSDK\\4.6.1\\","NUMBER_OF_PROCESSORS":"4","ORIGINAL_XDG_CURRENT_DESKTOP":"undefined","OS":"Windows_NT","OneDrive":"C:\\Users\\v-cathyzhang\\OneDrive - Microsoft","OneDriveCommercial":"C:\\Users\\v-cathyzhang\\OneDrive - Microsoft","PATHEXT":".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC","PROCESSOR_ARCHITECTURE":"AMD64","PROCESSOR_IDENTIFIER":"AMD64 Family 25 Model 1 Stepping 1, AuthenticAMD","PROCESSOR_LEVEL":"25","PROCESSOR_REVISION":"0101","PROMPT":"$P$G","PSModulePath":"C:\\Program Files\\WindowsPowerShell\\Modules;C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules;C:\\Program Files\\Microsoft Monitoring Agent\\Agent\\PowerShell\\","PUBLIC":"C:\\Users\\Public","Path":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.42.34432\\bin\\HostX86\\x86;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\IDE\\VC\\VCPackages;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\IDE\\CommonExtensions\\Microsoft\\TestWindow;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\IDE\\CommonExtensions\\Microsoft\\TeamFoundation\\Team Explorer;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\MSBuild\\Current\\bin\\Roslyn;C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v10.0A\\bin\\NETFX 4.6.1 Tools\\;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Team Tools\\DiagnosticsHub\\Collector;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\IDE\\Extensions\\Microsoft\\CodeCoverage.Console;C:\\Program Files (x86)\\Windows Kits\\10\\bin\\10.0.22621.0\\\\x86;C:\\Program Files (x86)\\Windows Kits\\10\\bin\\\\x86;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\\\MSBuild\\Current\\Bin\\amd64;C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\IDE\\;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\Tools\\;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.42.34432\\bin\\HostX86\\x86;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\IDE\\VC\\VCPackages;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\IDE\\CommonExtensions\\Microsoft\\TestWindow;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\IDE\\CommonExtensions\\Microsoft\\TeamFoundation\\Team Explorer;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\MSBuild\\Current\\bin\\Roslyn;C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v10.0A\\bin\\NETFX 4.6.1 Tools\\;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Team Tools\\DiagnosticsHub\\Collector;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\IDE\\Extensions\\Microsoft\\CodeCoverage.Console;C:\\Program Files (x86)\\Windows Kits\\10\\bin\\10.0.22621.0\\\\x86;C:\\Program Files (x86)\\Windows Kits\\10\\bin\\\\x86;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\\\MSBuild\\Current\\Bin\\amd64;C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\IDE\\;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\Tools\\;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.6\\bin;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.6\\libnvvp;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\ProgramData\\chocolatey;C:\\msys64\\ucrt64\\bin;C:\\msys64\\mingw64\\bin;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\Microsoft SQL Server\\150\\Tools\\Binn\\;C:\\Program Files (x86)\\Windows Kits\\10\\Windows Performance Toolkit\\;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\IDE\\CommonExtensions\\Microsoft\\CMake\\CMake\\bin;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\IDE\\CommonExtensions\\Microsoft\\CMake\\Ninja\\ninja.exe;C:\\Users\\v-cathyzhang\\Downloads\\ninja-win\\ninja.exe;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\Program Files\\NVIDIA Corporation\\Nsight Compute 2024.3.2\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.6\\bin;C:\\Users\\v-cathyzhang\\Downloads\\eigen-3.4.0\\eigen-3.4.0;C:\\Program Files\\Git\\cmd;C:\\Users\\v-cathyzhang\\AppData\\Local\\Programs\\Python\\Python313\\Scripts\\;C:\\Users\\v-cathyzhang\\AppData\\Local\\Programs\\Python\\Python313\\;C:\\Users\\v-cathyzhang\\AppData\\Local\\Programs\\Python\\Launcher\\;C:\\Users\\v-cathyzhang\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\v-cathyzhang\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\v-cathyzhang\\.dotnet\\tools;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\IDE\\CommonExtensions\\Microsoft\\CMake\\CMake\\bin;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\IDE\\CommonExtensions\\Microsoft\\CMake\\Ninja;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\IDE\\VC\\Linux\\bin\\ConnectionManagerExe;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\vcpkg;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\IDE\\CommonExtensions\\Microsoft\\CMake\\CMake\\bin;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\IDE\\CommonExtensions\\Microsoft\\CMake\\Ninja;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\IDE\\VC\\Linux\\bin\\ConnectionManagerExe;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\vcpkg","ProgramData":"C:\\ProgramData","ProgramFiles":"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)","ProgramW6432":"C:\\Program Files","SESSIONNAME":"RDP-Tcp#0","SystemDrive":"C:","SystemRoot":"C:\\Windows","TEMP":"C:\\Users\\V-CATH~1\\AppData\\Local\\Temp","TMP":"C:\\Users\\V-CATH~1\\AppData\\Local\\Temp","UATDATA":"C:\\Windows\\CCM\\UATData\\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77","UCRTVersion":"10.0.22621.0","USERDNSDOMAIN":"fareast.corp.microsoft.com","USERDOMAIN":"FAREAST","USERDOMAIN_ROAMINGPROFILE":"FAREAST","USERNAME":"v-cathyzhang","USERPROFILE":"C:\\Users\\v-cathyzhang","UniversalCRTSdkDir":"C:\\Program Files (x86)\\Windows Kits\\10\\","VCIDEInstallDir":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\IDE\\VC\\","VCINSTALLDIR":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\","VCPKG_ROOT":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\vcpkg","VCToolsInstallDir":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.42.34432\\","VCToolsRedistDir":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Redist\\MSVC\\14.42.34430\\","VCToolsVersion":"14.42.34432","VS140COMNTOOLS":"C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\Tools\\","VS170COMNTOOLS":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\Tools","VSCMD_ARG_HOST_ARCH":"x86","VSCMD_ARG_TGT_ARCH":"x86","VSCMD_ARG_app_plat":"Desktop","VSCMD_VER":"17.13.0-pre.2.0","VSCODE_CLI":"1","VSCODE_CODE_CACHE_PATH":"C:\\Users\\v-cathyzhang\\AppData\\Roaming\\Code\\CachedData\\f1a4fb101478ce6ec82fe9627c43efbf9e98c813","VSCODE_CRASH_REPORTER_PROCESS_TYPE":"extensionHost","VSCODE_CWD":"C:\\Users\\v-cathyzhang\\test-cmake-tools","VSCODE_ESM_ENTRYPOINT":"vs/workbench/api/node/extensionHostProcess","VSCODE_HANDLES_UNCAUGHT_ERRORS":"true","VSCODE_IPC_HOOK":"\\\\.\\pipe\\95fbdd7e-1.95.3-main-sock","VSCODE_NLS_CONFIG":"{\"userLocale\":\"en\",\"osLocale\":\"zh-cn\",\"resolvedLanguage\":\"en\",\"defaultMessagesFile\":\"C:\\\\Users\\\\v-cathyzhang\\\\AppData\\\\Local\\\\Programs\\\\Microsoft VS Code\\\\resources\\\\app\\\\out\\\\nls.messages.json\",\"locale\":\"en\",\"availableLanguages\":{}}","VSCODE_PID":"8632","VSINSTALLDIR":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\","VisualStudioVersion":"17.0","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","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.6.1 Tools\\x64\\","WindowsSDK_ExecutablePath_x86":"C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v10.0A\\bin\\NETFX 4.6.1 Tools\\","WindowsSdkBinPath":"C:\\Program Files (x86)\\Windows Kits\\10\\bin\\","WindowsSdkDir":"C:\\Program Files (x86)\\Windows Kits\\10\\","WindowsSdkVerBinPath":"C:\\Program Files (x86)\\Windows Kits\\10\\bin\\10.0.22621.0\\","__DOTNET_ADD_32BIT":"1","__DOTNET_PREFERRED_BITNESS":"32","__VSCMD_PREINIT_PATH":"C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.6\\bin;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.6\\libnvvp;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\ProgramData\\chocolatey;C:\\msys64\\ucrt64\\bin;C:\\msys64\\mingw64\\bin;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\Microsoft SQL Server\\150\\Tools\\Binn\\;C:\\Program Files (x86)\\Windows Kits\\10\\Windows Performance Toolkit\\;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\IDE\\CommonExtensions\\Microsoft\\CMake\\CMake\\bin;C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\Common7\\IDE\\CommonExtensions\\Microsoft\\CMake\\Ninja\\ninja.exe;C:\\Users\\v-cathyzhang\\Downloads\\ninja-win\\ninja.exe;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\Program Files\\NVIDIA Corporation\\Nsight Compute 2024.3.2\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.6\\bin;C:\\Users\\v-cathyzhang\\Downloads\\eigen-3.4.0\\eigen-3.4.0;C:\\Program Files\\Git\\cmd;C:\\Users\\v-cathyzhang\\AppData\\Local\\Programs\\Python\\Python313\\Scripts\\;C:\\Users\\v-cathyzhang\\AppData\\Local\\Programs\\Python\\Python313\\;C:\\Users\\v-cathyzhang\\AppData\\Local\\Programs\\Python\\Launcher\\;C:\\Users\\v-cathyzhang\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\v-cathyzhang\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\v-cathyzhang\\.dotnet\\tools","windir":"C:\\Windows","CC":"cl.exe","CXX":"cl.exe","NINJA_STATUS":"[%s/%t %p :: %e] "}
[build] CMake is re-running because C:/Users/v-cathyzhang/test-cmake-tools/build/CMakeFiles/generate.stamp is out-of-date.
[build]   the file 'C:/Users/v-cathyzhang/test-cmake-tools/conan_provider.cmake'
[build]   is newer than 'C:/Users/v-cathyzhang/test-cmake-tools/build/CMakeFiles/generate.stamp.depend'
[build]   result='-1'
[build] -- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22631.
[build] -- CMake-Conan: first find_package() found. Installing dependencies with Conan
[build] -- CMake-Conan: Installing both Debug and Release
[build] -- CMake-Conan: conan install C:/Users/v-cathyzhang/test-cmake-tools  -pr:h;default-pr:b;default;-s;build_type=Release;--build=missing;--update
[build] usage: conan install [-h] [-v [V]] [-cc CORE_CONF] [-f FORMAT] [--name NAME]
[build]                      [--version VERSION] [--user USER] [--channel CHANNEL]
[build]                      [--requires REQUIRES] [--tool-requires TOOL_REQUIRES]
[build]                      [-b BUILD] [-r REMOTE | -nr] [-u [UPDATE]] [-pr PROFILE]
[build]                      [-pr:b PROFILE_BUILD] [-pr:h PROFILE_HOST]
[build]                      [-pr:a PROFILE_ALL] [-o OPTIONS] [-o:b OPTIONS_BUILD]
[build]                      [-o:h OPTIONS_HOST] [-o:a OPTIONS_ALL] [-s SETTINGS]
[build]                      [-s:b SETTINGS_BUILD] [-s:h SETTINGS_HOST]
[build]                      [-s:a SETTINGS_ALL] [-c CONF] [-c:b CONF_BUILD]
[build]                      [-c:h CONF_HOST] [-c:a CONF_ALL] [-l LOCKFILE]
[build]                      [--lockfile-partial] [--lockfile-out LOCKFILE_OUT]
[build]                      [--lockfile-clean]
[build]                      [--lockfile-overrides LOCKFILE_OVERRIDES] [-g GENERATOR]
[build]                      [-of OUTPUT_FOLDER] [-d DEPLOYER]
[build]                      [--deployer-folder DEPLOYER_FOLDER]
[build]                      [--deployer-package DEPLOYER_PACKAGE] [--build-require]
[build]                      [--envs-generation {false}]
[build]                      [path]
[build] conan install: error: unrecognized arguments: default
[build] ERROR: Exiting with code: 2
[build] CMake Error at conan_provider.cmake:16 (message):
[build]   Conan install failed='2'
[build] Call Stack (most recent call first):
[build]   conan_provider.cmake:44 (conan_install)
[build]   CMakeLists.txt:4 (find_package)
[build] 
[build] 
[build] -- Configuring incomplete, errors occurred!
[build] CMake Configure step failed.  Build files cannot be regenerated correctly.
[proc] The command: "C:\Program Files\Microsoft Visual Studio\2022\Preview\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.EXE" --build c:/Users/v-cathyzhang/test-cmake-tools/build --config Debug --target ALL_BUILD -j 6 -- exited with code: 4294967295
[driver] Build completed: 00:00:01.807
[cmakefileapi-parser] Read reply folder: c:\Users\v-cathyzhang\test-cmake-tools\build\.cmake\api\v1\reply
[cmakefileapi-parser] Found index files: ["cache-v2-82903ad0b8507809a30e.json","cmakeFiles-v1-1eb6d621ad01738f332d.json","codemodel-v2-f4d9227830f99234a0be.json","directory-.-Debug-55e938097ab6863adaed.json","directory-.-MinSizeRel-200ef958e710a010790e.json","directory-.-Release-d913895e9b1b5068313b.json","directory-.-RelWithDebInfo-ef8c24f88fb3e2d85862.json","index-2024-11-29T09-30-14-0284.json","target-ALL_BUILD-Debug-57fc03545389f0296f74.json","target-ALL_BUILD-MinSizeRel-57fc03545389f0296f74.json","target-ALL_BUILD-Release-57fc03545389f0296f74.json","target-ALL_BUILD-RelWithDebInfo-57fc03545389f0296f74.json","target-mypkg-Debug-34972962ebb3ba732191.json","target-mypkg-MinSizeRel-ad757cf65ead29622748.json","target-mypkg-Release-95e937ac4c7f6d008ee1.json","target-mypkg-RelWithDebInfo-27c8c08416f5a0c5c7c1.json","target-ZERO_CHECK-Debug-880ff64baa3d832c47fb.json","target-ZERO_CHECK-MinSizeRel-880ff64baa3d832c47fb.json","target-ZERO_CHECK-Release-880ff64baa3d832c47fb.json","target-ZERO_CHECK-RelWithDebInfo-880ff64baa3d832c47fb.json","toolchains-v1-764c9e8acdfb71b63bea.json"]
[expand] expanded ${workspaceFolder}/build
[build] Build finished with exit code 4294967295
[cache] Reading CMake cache file c:/Users/v-cathyzhang/test-cmake-tools/build/CMakeCache.txt
[cache] Parsing CMake cache string
[extension] [4146] cmake.build finished (returned 4294967295)

@Yingzi1234
Copy link
Collaborator

Yingzi1234 commented Nov 29, 2024

@tbsuht I have installed Conan and pip on the machine but still have problems either configuring with commands or manually, could you give me a recorded screen that reproduces the steps?

@tbsuht
Copy link
Author

tbsuht commented Dec 3, 2024

@Yingzi1234 Sorry, I forgot one command as the default profile was already present on my machine.

Please run conan profile detect once. Hope this is working now ...

@Yingzi1234
Copy link
Collaborator

@tbsuht Thank you for your reply! The reason why we failed to configure above is that we didn't add the path of the installed Conan to the environment, after we added it and restarted the computer, the problem was solved and both configure and build were successful. You can get the details below, Thank you!

How to add the conan's path to Envrionment:

  1. Find the Conan's path, e.g., C:\Users\xxxx\.conan2
  2. Put the Conan's Path to environment path
    Image
  3. Restart your machine

Repro steps:
Image

@tbsuht
Copy link
Author

tbsuht commented Dec 9, 2024

I'm not sure what you mean with the PATH stuff ... in your first reply conan is found only default was not recognized as a parameter.

Anyway ... I tried to simplify the reproducer.

From a fresh checkout
conan install . -pr:h default -pr:b default -s build_type=Release --build missing
this inits the repo and creates a CMakeUsersPresets.json.

After that, using Build fails. I'm doing this in a Ubuntu-22.04 WSL ... maybe that is important.

@gcampbell-msft
Copy link
Collaborator

@Yingzi1234 FYI.

@Yingzi1234
Copy link
Collaborator

Yingzi1234 commented Dec 18, 2024

@gcampbell-msft @tbsuht This issue is not reproduced on Linux machine with the latest CMake Tools version v1.20.31(pre-release), you can get the details below. Thank you!

Repro steps:

  1. Install conan and pip on the Ubuntu Linux platform and configure the required environment
  2. Clone the repo https://github.com/tbsuht/test-cmake-tools.git
  3. Build this repo
    Image
    Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
more info needed More info is needed from the community for us to properly triage and investigate.
Projects
Status: Blocked
Development

No branches or pull requests

4 participants