cmake change build dir in clion
<p>Is there a way how to pass build dir to CLion? The command that is executed is</p>

<pre><code>/usr/bin/cmake --build /old/path/.CLion12/system/cmake/generated/ba070dfe/ba070dfe/Debug --target clean -- -j 4
</code></pre>

<p>But I would like to have something like</p>

<pre><code>/usr/bin/cmake --build /new/path --target clean -- -j 4
</code></pre>

<p>I have tried several options both in <a href="http://www.vtk.org/Wiki/CMake_Cross_Compiling" rel="nofollow">CMake</a> and <a href="https://www.jetbrains.com/clion/help/quick-cmake-tutorial.html" rel="nofollow">CLion</a> but none of them impacts the result.</p>