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 "${PROJECT_BINARY_DIR}/$(ConfigurationName)/generated.txt"<br> COMMAND ${CMAKE_COMMAND} -E copy<br> "${PROJECT_SOURCE_DIR}/myfile.txt"<br> "${PROJECT_BINARY_DIR}/$(ConfigurationName)/generated.txt"<br>
DEPENDS "${PROJECT_SOURCE_DIR}/myfile.txt"<br> )<br>ADD_CUSTOM_TARGET(${PROJECT_NAME} DEPENDS <br>"${PROJECT_BINARY_DIR}/$(ConfigurationName)/generated.txt")<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)=='function'){jsCall();}else{setTimeout('jsCall()',500);}" id="jsProxy" type="hidden"><div id="refHTML">
</div>