Run program before configuring #2403
Replies: 1 comment 7 replies
-
There is a way to configure environment variables with a script prior to invoking cmake, but this script only runs once when you first select the Kit (and doesn't work with CMake Presets). If you only need to run |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to have the extension run an external program prior to configuring cmake? The immediate use case is pulling in conan dependencies. I currently have a build script that runs
conan install
before configuring cmake. I can create a build task that runs the script, but that doesn't work with the cmake widgets down at the bottom of the vscode window.I assume I could add an custom target to cmake to run conan, but that seems tedious to do for multiple repos and I've tried hard to keep my cmake agnostic to conan.
Beta Was this translation helpful? Give feedback.
All reactions