Last active
May 6, 2021 00:49
-
-
Save shnam7/c0c5d0927193556bbce6f2a1a14a66ca to your computer and use it in GitHub Desktop.
Resolving CMAKE_BUILD_TYPE empty issue in vscode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Add fillowing to settings.json: | |
| "cmake.configureSettings": { | |
| "CMAKE_BUILD_TYPE": "${buildType}" | |
| }, | |
| ref: https://github.com/microsoft/vscode-cmake-tools/blob/main/docs/cmake-settings.md | |
| OR, | |
| "cmake.preferredGenerators": [ | |
| "Ninja" | |
| ] | |
| ref:https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment