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
I have a project that uses multiple kits. The cmake.buildDirectory is set to ${workspaceFolder}/build-vscode/${buildKit} so that build files associated with different kits are located in different directories.
If I switch from one kit to another and then perform the action Clean Reconfigure All Projects then the CMakeCache.txt and CMakeFiles associated with the previous kit are deleted before the cmake configure command is run. This causes the reconfiguration of the new kit to behave as a regular configure, while the configuration associated with the previous kit is lost.
Expected behavior
Only files in the current build directory should be affected when running Clean Reconfigure All Projects.
Actual behavior
A combination of files from two build directories are affected.
Debug Log
The log below shows relevant parts of the log when performing the following actions:
Configure the project using the Visual Studio 2019 kit
Switch to the Emscripten kit
Clean Reconfigure the project using the Emscripten kit
Notice that the build directory is wrong in the lines starting with [driver] Removing. These should contain Emscripten_WASM rather than Windows_x64_msvc142.
[main] Configuring folder: MyProject
[proc] Executing command: C:\cmake-3.16.3-win32-x86\bin\cmake.EXE --no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_INSTALL_PREFIX:STRING=c:/MyProject/install/Windows_x64_msvc142 -Hc:/MyProject -Bc:/MyProject/build-vscode/Windows_x64_msvc142 -G "Visual Studio 16 2019" -T host=x64 -A x64
[cmake] Not searching for unused variables given on the command line.
[cmake] -- The C compiler identification is MSVC 19.29.30137.0
.
.
[cmake] -- Configuring done
[cmake] -- Generating done
[cmake] -- Build files have been written to: C:/MyProject/build-vscode/Windows_x64_msvc142
[driver] Switching to kit: Emscripten_WASM
[main] Configuring folder: MyProject
[driver] Removing c:/MyProject/build-vscode/Windows_x64_msvc142/CMakeCache.txt
[driver] Removing c:\MyProject\build-vscode\Windows_x64_msvc142\CMakeFiles
[proc] Executing command: C:\cmake-3.16.3-win32-x86\bin\cmake.EXE --no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_INSTALL_PREFIX:STRING=c:/MyProject/install/Emscripten_WASM -DCMAKE_TOOLCHAIN_FILE:FILEPATH=C:/emsdk-v3.1.0/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake -DENABLE_EMSCRIPTEN_WASM:STRING=ON -DENABLE_EMSCRIPTEN_PTHREADS:STRING=OFF -Hc:/MyProject -Bc:/MyProject/build-vscode/Emscripten_WASM -G Ninja
.
.
[cmake] -- Configuring done
[cmake] -- Generating done
[cmake] -- Build files have been written to: C:/MyProject/build-vscode/Emscripten_WASM
Kits used
The kits should not matter for reproducing this bug, but I am including them just in case.
Brief Issue Summary
I have a project that uses multiple kits. The
cmake.buildDirectory
is set to${workspaceFolder}/build-vscode/${buildKit}
so that build files associated with different kits are located in different directories.If I switch from one kit to another and then perform the action Clean Reconfigure All Projects then the CMakeCache.txt and CMakeFiles associated with the previous kit are deleted before the cmake configure command is run. This causes the reconfiguration of the new kit to behave as a regular configure, while the configuration associated with the previous kit is lost.
Expected behavior
Only files in the current build directory should be affected when running Clean Reconfigure All Projects.
Actual behavior
A combination of files from two build directories are affected.
Debug Log
The log below shows relevant parts of the log when performing the following actions:
Notice that the build directory is wrong in the lines starting with
[driver] Removing
. These should contain Emscripten_WASM rather than Windows_x64_msvc142.Kits used
The kits should not matter for reproducing this bug, but I am including them just in case.
The text was updated successfully, but these errors were encountered: