<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hello,<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</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:&nbsp;&nbsp; $(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:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cd .. &amp;&amp; $(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:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cd .. &amp;&amp; $(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></body></html>