Option to have :CMakeRun not change the current build target?
hsetlik opened this issue · 7 comments
Hi,
First of all I really appreciate this project, I'm using it for audio plugin development where I have a plugin target which runs inside an audio plugin host executable. Right now building the plugin and launching the host to run it works like:
- With the build target set to PLUGIN and the launch target set to HOST, run
:CMakeBuild
to build the plugin - Run
:CMakeRun
to launch the host
This works, but :CMakeRun
causes the build target to be set to HOST, which I need to manually change back to PLUGIN before building and running again. I'd really like an option to have :CMakeRun
leave the build target unchanged. Thanks!
I think you're right, it should leave the build target unchanged. I've pushed a fix.
Ok thank you- is it an option in the config? I just updated to the latest commit but doing :CMakeRun
still changes the build target for me.
It works for me. Can you record your operation?
cmaketools_recording.mov
You can see the build target switch from "Electrum_VST3" to "AudioPluginHost" on the status line at the bottom when I run the command.
That's weird, are you sure that you've updated to the latest commit?
Oh my mistake, I updated without reloading the plugin in Lazy, it's working now.
Okay, closing it for now, feel free to open it if you still have this problem.