Skip to content

How to select working directory for cmake? "CMake: Select Active Folder" doesn't detect it #3212

Closed Answered by bobbrow
Marqin asked this question in Q&A
Discussion options

You must be logged in to vote

If you have two CMake projects in your workspace folder, you can specify both of them in the cmake.sourceDirectory in your settings.json file (VS Code settings) so that we know you want to work with both of them.

Example:

"cmake.sourceDirectory": [
  "/path/to/project-a",
  "/path/to/project-b"
]

You can also open both workspace folders in a single VS Code window if you'd prefer to do it that way.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Marqin
Comment options

Answer selected by Marqin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants