You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the cmake tools extension, I am unable to change the target architecture(x86/x64) with the "architecture" field in my configure preset. This functionality does work if I use cmake over the command line.
In the example, I am trying use the "debug-32bit" preset, which is supposed to build for x86.
In the extension output, you can see the compiler under Hostx64/x64/cl.exe is selected
In the command line cmake output, you can see the compiler under Hostx64/x86/cl.exe is selected
PS C:\Users\TEST\cmakePresetTestProject\build> cmake ../ --preset debug-32bit
Preset CMake variables:
CMAKE_BUILD_TYPE="Debug"
-- Building for: Visual Studio 17 2022
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.19045.
-- The CXX compiler identification is MSVC 19.39.33522.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Tools/MSVC/14.39.33519/bin/Hostx64/x86/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done (2.5s)
-- Generating done (0.0s)
CMake Warning:
Manually-specified variables were not used by the project:
CMAKE_BUILD_TYPE
-- Build files have been written to: C:/Users/TEST/cmakePresetTestProject/build
The text was updated successfully, but these errors were encountered:
Brief Issue Summary
When using the cmake tools extension, I am unable to change the target architecture(x86/x64) with the "architecture" field in my configure preset. This functionality does work if I use cmake over the command line.
In the example, I am trying use the "debug-32bit" preset, which is supposed to build for x86.
CMake Tools Diagnostics
Debug Log
Additional Information
This is a follow up to a comment I made to @gcampbell-msft : #3818 (comment)
PRESETS
CORRECT FUNCTIONALITY USING COMMAND LINE
The text was updated successfully, but these errors were encountered: