<html><body bgcolor="#FFFFFF"><div>This has been discussed a gazillion times, and the answer will always be the same: no. It's impossible. A build tree always depends on CMake, and is not relocatable. Live with it.</div><div><br></div><div>If your users don't want to use CMake, provide them with a convenience script that does the hard work for them.</div><div><br></div><div>HTH</div><div><br></div><div>Michael</div><div><br><br></div><div><br>On 01.07.2011, at 23:43, "Bello, Musodiq O (GE Healthcare)" <<a href="mailto:bello@ge.com">bello@ge.com</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div><div class="WordSection1"><p class="MsoNormal">Hello,<o:p></o:p></p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal">I used cmake to build a project and it runs fine on my Linux box as part of a bigger app. But I need to be able to check in the Makefiles along with my code, so that other users don't need to perform the cmake configuration all over. The problem is that the Makefiles generated by cmake have references to the cmake executable. The Makefiles include lines such as<o:p></o:p></p><p class="MsoNormal"> <o:p></o:p></p><p class="MsoNormal">CMakeFiles/Makefile2: $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0<o:p></o:p></p><p class="MsoNormal"> <o:p></o:p></p><p class="MsoNormal">libmed/Makefile: cd .. && $(CMAKE_COMMAND) -E cmake_progress_start /musodiq/med/medbuild/arch/linux64/CMakeFiles /musodiq/medbuild/arch/linux64/libmed/CMakeFiles/progress.marks<o:p></o:p></p><p class="MsoNormal"> <o:p></o:p></p><p class="MsoNormal">libmed/Makefile: cd .. && $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0<o:p></o:p></p><p class="MsoNormal"> <o:p></o:p></p><p class="MsoNormal">where CMAKE_COMMAND is hardcoded as my local installation of cmake. This makes it difficult to simply use the Makefiles on another computer directly from a cvs/svn checkout.<o:p></o:p></p><p class="MsoNormal"> <o:p></o:p></p><p class="MsoNormal">What can I do to avoid any dependence on cmake once the Makefiles are generated? How can I skip execution of lines such as the above during a gmake build? If there's no way to avoid dependence on cmake, how can I specify the path to cmake to be relative so that I can put cmake as part of the project to be checked out?<o:p></o:p></p><p class="MsoNormal"> <o:p></o:p></p><p class="MsoNormal">Thanks for your help.<o:p></o:p></p><p class="MsoNormal"> <o:p></o:p></p><p class="MsoNormal">Musodiq<o:p></o:p></p></div></div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Powered by <a href="http://www.kitware.com"><a href="http://www.kitware.com">www.kitware.com</a></a></span><br><span></span><br><span>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html"><a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a></a></span><br><span></span><br><span>Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ"><a href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a></a></span><br><span></span><br><span>Follow this link to subscribe/unsubscribe:</span><br><span><a href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a></span></div></blockquote></body></html>