Skip to content

Instantly share code, notes, and snippets.

@shnam7
Last active May 6, 2021 00:49
Show Gist options
  • Select an option

  • Save shnam7/c0c5d0927193556bbce6f2a1a14a66ca to your computer and use it in GitHub Desktop.

Select an option

Save shnam7/c0c5d0927193556bbce6f2a1a14a66ca to your computer and use it in GitHub Desktop.
Resolving CMAKE_BUILD_TYPE empty issue in vscode
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