[cmake-developers] [patch] Document -H and -B
Ruslan Baratov
ruslan_baratov at yahoo.com
Thu Jun 30 17:10:42 EDT 2016
On 30-Jun-16 23:57, Shawn Waldon wrote:
> On Thu, Jun 30, 2016 at 4:54 PM, Ruslan Baratovwrote:
>
> On 30-Jun-16 23:40, Brad King wrote:
>
> On 06/30/2016 04:28 PM, Ruslan Baratov wrote:
>
> On 30-Jun-16 23:18, Brad King wrote:
>
> On 06/30/2016 03:56 PM, Ruslan Baratov wrote:
>
> What is the public-use way to specify source-tree
> and build-tree by
> cmake options simultaneously?
>
> cd $build && cmake $src
>
> Will not work if $build not exists.
>
> mkdir -p "$build" && cd "$build" && cmake "$src"
>
>
> Next issue is that this command change directory, how can I move
> back to the directory where I was working on?
>
>
> mkdir -p "$build" && pushd "$build" && cmake "$src" && popd
>
Doesn't go back if `cmake "$src"` failed
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20160701/215de947/attachment.html>
More information about the cmake-developers
mailing list