Open nolange opened 2 months ago
@nolange I used a simple project to try to reproduce your problem but I can't reproduce it, would you be able to provide a simple project that can reproduce this problem so that we can better investigate it, looking forward to your reply!
CMakeLists.txt CMakePresets.json
I've attached a simple preset and cmakelist.txt to reproduce the issue
Adding "cacheVariables": {"CMAKE_BUILD_TYPE":"Release"}
in the preset fixes the problem.
Setting CMAKE_BUILD_TYPE
in CMakeLists.txt have no effect.
@rulerofthehuns Thank you very much for your reply, based on the information you provided we reproduced the issue, our developers will investigate as well as deal with it, we will update the review even if there is any progress.
Actual result:
CMakeLists.txt CMakePresets.json
I've attached a simple preset and cmakelist.txt to reproduce the issue
Adding
"cacheVariables": {"CMAKE_BUILD_TYPE":"Release"}
in the preset fixes the problem. SettingCMAKE_BUILD_TYPE
in CMakeLists.txt have no effect.
thanks for the tips, I also encountered this problem
@feng-jianweThank you for your comment, our developers are investigating this issue and we'll be the first to add a comment if any new developments follow.
Brief Issue Summary
Configuring a Project without a CMAKE_BUILD_TYPE result in this extension not being able to Select a Debug or Launch Target in the CMake Window. And because of that its not possible to run or Debug any Target.
Note that I use a single-configuration Generator (
Ninja
), so atleast for this case there should be no ambiguity.Pic with the non-working Debug Selector, note that the plugin has no trouble listing targets or running tests.
CMake Tools Diagnostics
Debug Log
Additional Information
No response