[cmake-developers] Controlling CMake GUI source/build directory from CLI

Venedict Tchistopolskii venytch at gmail.com
Fri Jan 25 16:23:34 EST 2019


Get 2 CMake projects.

Get CMake GUI to 'configure' one of them. Close/re-open and it will
automatically point to this configured project source and build locations,
regardless of what build/version/cmake-gui.exe you use.

Run a different cmake-gui.exe through the CLI, passing in source and build
locations. It will be properly load these instead of the 'last configured
project' now.

Now close it, without configuring, and re-open it normally without CLI
overrides. Now it'll load the original project as if you've never set it to
a different source/build location.

tl;dr CMake loads the last-configured source/bin directory by default. If
you don't configure (or pass override through CLI) it will keep loading the
same project.

VT

On Fri, Jan 25, 2019 at 1:19 PM Kyle Edwards <kyle.edwards at kitware.com>
wrote:

> On Fri, 2019-01-25 at 12:55 -0800, Venedict Tchistopolskii wrote:
>
> Cherry picked and tested. Works great, thank you!
>
>
> Great, glad to hear it!
>
> Now, if only the source/build path would stick around, without requiring
> config to be triggered. :P
>
>
> Can you clarify what you mean by this?
>
> Kyle
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake-developers/attachments/20190125/277c05b0/attachment-0001.html>


More information about the cmake-developers mailing list