Hi,<br><br>I asked this question some time ago in the mailing list. Unfortunately, I did not try to resolve this issue since then, so I am trying again. :)<br><br>I am using Visual Studio 2010 generator and cmake 2.8.2.<br>
<br>Why the following custom command is runing all the time, although the input dependency ( myfile.txt ) is not changed ? With Visual Studio 2005 it is working ok. <br><br>CMAKE_MINIMUM_REQUIRED(VERSION 2.8)<br>PROJECT(quick_test)<br>
<br>ADD_CUSTOM_COMMAND(<br> OUTPUT &quot;${PROJECT_BINARY_DIR}/$(ConfigurationName)/generated.txt&quot;<br> COMMAND ${CMAKE_COMMAND} -E copy<br>  &quot;${PROJECT_SOURCE_DIR}/myfile.txt&quot;<br>  &quot;${PROJECT_BINARY_DIR}/$(ConfigurationName)/generated.txt&quot;<br>
 DEPENDS &quot;${PROJECT_SOURCE_DIR}/myfile.txt&quot;<br> )<br>ADD_CUSTOM_TARGET(${PROJECT_NAME} DEPENDS <br>&quot;${PROJECT_BINARY_DIR}/$(ConfigurationName)/generated.txt&quot;)<br><br><br><span style="visibility: visible;" id="topstuff"><span class="spell" style="color: rgb(0, 0, 0);"></span></span><span style="visibility: visible;" id="topstuff"><span class="spell" style="color: rgb(0, 0, 0);"></span></span><input id="gwProxy" type="hidden"><input onclick="if(typeof(jsCall)==&#39;function&#39;){jsCall();}else{setTimeout(&#39;jsCall()&#39;,500);}" id="jsProxy" type="hidden"><div id="refHTML">
</div>