Comments (6)
@XuPengfei-1020 I tried this issue as you described and got the following results:
Is that the question you're trying to get across?
from vscode-cmake-tools.
It seemd that the history issue about this problem was arbitrary closed but without any fixed.
Please tell us the reason of this bug, and how to avoid it.
from vscode-cmake-tools.
@XuPengfei-1020 I'm sorry, I don't fully understand your issue. Are you saying that you're expecting 'null' in the CMAKE_BUILD_TYPE to work? What issue are you referencing that was closed?
Some more information about the issue you are facing is required in order for us to help out, looking forward to helping you! Thanks.
from vscode-cmake-tools.
@XuPengfei-1020 I'm sorry, I don't fully understand your issue. Are you saying that you're expecting 'null' in the CMAKE_BUILD_TYPE to work? What issue are you referencing that was closed?
Some more information about the issue you are facing is required in order for us to help out, looking forward to helping you! Thanks.
Thanks for your reply.
The error msg is 'Debug' instead of 'DEBUG' OR 'Release' instead of 'RELEASE', dependent on what cmake target I set in the cmake-took config.
I changed the cmake command by replace '-DCMAKE_BUILD_TYPE:STRING=Debug' with '-DCMAKE_BUILD_TYPE:STRING=DEBUG', ran it by hand, the error msg was not appreence any more.
It seems like the DCMAKE_BUILD_TYPE(Debug, Release) in cmake command that cmake-tools assemble is not match the target definition in CMAKELISTS.txt(DEBUG,RELEASE).
from vscode-cmake-tools.
@v-frankwang
Yes, that is.
The DCMAKE_BUILD_TYPE in cmake-tools configuration can only be 'Debug' or 'Release', user need to choose a build_type from the preseted DCMAKE_BUILD_TYPE options but can not set a custom DCMAKE_BUILD_TYPE value, It caused the issue that DCMAKE_BUILD_TYPE in build command does not match the build_types which are definated in the CMakeLists.txt.
from vscode-cmake-tools.
@gcampbell-msft I reproduced the problem the user described, the exact steps are in my last comment, but I can't pinpoint exactly what's causing it, can you give me some advice?
from vscode-cmake-tools.
Related Issues (20)
- [Loc]Setting's description not localized for "cmake.ctest.testSuiteDelimiter" HOT 1
- [Loc]"Override settings applied" not localized
- Incorrect description for CMake setting's option " cmake.deleteBuildDirOnCleanConfigure"
- macros for penv/env not expanded when cache variables for cmake(c/cxx)compilers are included in configure preset HOT 1
- CMake configure preset installDir setting is evaluated relative to the binary directory instead of the source directory HOT 6
- [Loc] Property’s tooltip info in file "CMakePresets.json" is not localized
- [Flaky]Duplicate information appeared in output when Add CMakePreset.json
- copyCompileCommands to the original path still leaves a corrupted CDB on Windows HOT 2
- "CMake: build" is repeated twice in the list
- in vscode, How to use v141 toolset in VS2022 with cmake HOT 6
- Double-clicking on one of a target's "References" does nothing HOT 4
- Project outline does not show sources of custom targets with commands HOT 5
- Failure to ask the user to select a kit due to erroneously not finding CMakeLists.txt HOT 1
- Failed to set up project in a subfolder of a git repository HOT 7
- Debugging fails on macOS HOT 7
- [FR] Support module map files HOT 1
- setting active project again after quick start causes second configure
- Include paths are wrong on macOS case sensitive filesystems HOT 7
- test issue
- VSCode CTest Google Test complains non-existing `DartConfiguration.tcl` HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-cmake-tools.