diff options
| author | Orkun Tokdemir <orkun.tokdemir@qt.io> | 2024-11-28 16:53:45 +0100 |
|---|---|---|
| committer | Orkun Tokdemir <orkun.tokdemir@qt.io> | 2024-11-29 11:03:45 +0000 |
| commit | 32bd8c8593e0711005f31b07f7e6f32bd2630c80 (patch) | |
| tree | 81b516eb9eec338671e09405c3235452c254cb0a | |
| parent | fb11b08307f7ad7df0e8db85e00cb7bfc6f8c13b (diff) | |
qt-core: Add build dir with build type to recommended settings
Since 3968bcb7b59e522f328496cc56b427fde75c79d2 switched the default
generator from `Ninja Multi-Config` to `Ninja`, it is useful to have the
build directory with the build type in the recommended settings.
Change-Id: Id7d192340a390834d38f1e399674f22fc4b71895
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
| -rw-r--r-- | qt-core/src/recommended-settings.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/qt-core/src/recommended-settings.ts b/qt-core/src/recommended-settings.ts index 573239c..49a16df 100644 --- a/qt-core/src/recommended-settings.ts +++ b/qt-core/src/recommended-settings.ts @@ -2,6 +2,7 @@ // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only import * as vscode from 'vscode'; +import * as path from 'path'; import { isMultiWorkspace, telemetry } from 'qt-lib'; import { EXTENSION_ID } from '@/constants'; @@ -19,6 +20,11 @@ export function registerSetRecommendedSettingsCommand() { extensionId: 'cmake', setting: 'options.statusBarVisibility', value: 'visible' + }, + { + extensionId: 'cmake', + setting: 'buildDirectory', + value: `\${workspaceFolder}${path.sep}builds${path.sep}\${buildKit}${path.sep}\${buildType}` } ]; |
