CMakePresets: set source directory #4385
-
Hi, I was wondering that no one encountered this issue before, but as idk if this is an issue or not I will first start a discussion: following scenario: I've got a repo, where my CMakePresets.json is on the ${workspaceFolder} but the CMakeLists.txt is in the ${workspaceFolder}/examples/../app. Now I got following behaviour: First I need to restart VS-Code everytime when starting it, because VS-Code will look after a Presets-file in the source folder -> this is not what I want. I want that it is possible to set the sourceDir to CMakePrestets somehow and then to make it possible to set the sourceDir in the CMakePresets file itself for the upcoming CMakeLists.txt. better woud be if you could one could set up a list from which to choose from. Is that possible? What are possibilities to achieve the desired behaviour? Regards and thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Typically, it is assumed that CMakePresets.json files are always along with the CMakeLists.txt in the same directory. I've never seen any examples or usages where they are in different folders, since they represent the same project configuration and they go hand-in-hand. |
Beta Was this translation helpful? Give feedback.
Typically, it is assumed that CMakePresets.json files are always along with the CMakeLists.txt in the same directory. I've never seen any examples or usages where they are in different folders, since they represent the same project configuration and they go hand-in-hand.