chore: vscode settings should now be dynamically created and used in gitpod

This commit is contained in:
Mateusz Pusz committed 2021-10-01 12:41:53 +02:00
1 parent 76f500d6c4
commit 901f53cf16
2 files changed
+14 -7

No files matched your search

+14
View File
@@ -2,6 +2,20 @@ image: trainiteu/gitpod-cpp
# List the start up tasks. Learn more https://www.gitpod.io/docs/config-start-tasks/
tasks:
- name: vscode settings
init: |
mkdir -p "$PWD/.vscode";
cat << 'EOF' > "$PWD/.vscode/settings.json"
{
"cmake.buildDirectory": "${workspaceFolder}/build/${buildKitVendor}-${buildKitVersionMajor}",
"cmake.configureArgs": [
"-DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake"
],
"cmake.generator": "Ninja Multi-Config"
}
EOF
exit
- name: conan
before: |
sudo pip3 install -U conan
-7
View File
@@ -1,7 +0,0 @@
{
"cmake.buildDirectory": "${workspaceFolder}/build/${buildKitVendor}-${buildKitVersionMajor}",
"cmake.configureArgs": [
"-DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake"
],
"cmake.generator": "Ninja Multi-Config"
}