<div dir="ltr">You will need to rename the directory containing bin; the share folder scripts is often very dependant on the bin (or vice versa) ...<div>better to just keep like 'cmake' and then 'cmake-3.xx' directories containing the whole cmake package...</div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Sep 4, 2018 at 11:47 PM Vinitha <<a href="mailto:jiji.vinitha@gmail.com">jiji.vinitha@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div> Hi,</div><div>I have downloaded cmake binaries from cmake website. As I had to keep cmake binaries for different platforms in specific folder as per my build system requirements, I have renamed the 'bin' folder to for eg. lin, win, mac etc. This seems to work fine till cmake version 3.7. From this version onwards, I get the following error while invoking cmake after renaming the bin folder.</div><div> </div><div><em>$pwd</em></div><div><em>/home/neo/cmake/cmake-3.10.2-Linux-x86_64/lin86</em></div><div><em>$ </em></div><div><em>$./cmake --version</em></div><div><em>CMake Error: Could not find CMAKE_ROOT !!!</em></div><div><em> </em></div><div><em>CMake has most likely not been installed correctly.</em></div><div><em>Modules directory not found in</em></div><div><em> </em></div><div><em>cmake version 3.10.2</em></div><div><em> </em></div><div><em>CMake suite maintained and supported by Kitware (<a href="http://kitware.com/cmake" target="_blank">kitware.com/cmake</a>).</em></div><div><br></div><div><br></div><div>If I am renaming back to bin directory, there is no issues observed.</div><div>I have observed that, from version 3.7 onwards cmake has a new configure flag introduced to specify bin directory name, <strong>--bindir=DIR</strong>.</div><div><p>So now if I want to use any other name for 'bin' dir, I need to configure and build the cmake while specifiying the bin directory name I need.</p><p>Is there a way by using any environment variable or something I can modify the bin directory name of the downloaded cmake binary from cmake website and use it without the above mentioned error ?</p><p><br></p><p>Regards,</p><p>Vinitha</p><span><span><span></span></span></span></div></div></div></div></div>
-- <br>
<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" rel="noreferrer" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/training.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://cmake.org/mailman/listinfo/cmake" rel="noreferrer" target="_blank">https://cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div>