-
I have the same source tree that I want to build my project on in different OSes. I'd like to do some sort of variable substitution in the cmake.buildDirectory setting--something along the lines of ${workspaceFolder}/build-${OPERATING_SYSTEM}-${variant:buildType} So it'd result in e.g. project/build-Linux-release or project/build-Windows-debug But I can't find anything like this after a couple hours of searching. Is there a way to do this, or am I out of luck? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi, Not sure if it applies for your use-case, but you could try CmakePresets for this. Its easy to setup, but if you frequently switch between the different presets, then might not be the best for you. |
Beta Was this translation helpful? Give feedback.
Hi,
Not sure if it applies for your use-case, but you could try CmakePresets for this. Its easy to setup, but if you frequently switch between the different presets, then might not be the best for you.