Hi,<div><br></div><div>I'm trying to use "file(COPY ..." during the build of one of my project.</div><div>The documentation says that files get overwritten according to their</div><div>timestamps, but it seems they just never get overwritten.</div>
<meta http-equiv="content-type" content="text/html; charset=utf-8"><div><br></div><div>For instance, with this CMakeLists :</div><div><br></div><div>===================================</div><div><div>project(test)</div><div>
cmake_minimum_required(VERSION 2.8)</div><div>file(INSTALL dir DESTINATION ${CMAKE_CURRENT_BINARY_DIR})</div><div>file(INSTALL bar.txt DESTINATION ${test_BINARY_DIR}/dir)</div></div><div>===================================</div>
<div><br></div><div>and those steps :</div><div><br></div><div>$ mkdir build && cd build && cmake .. && make</div><div>$ echo "something new" >> ../bar.txt</div><div>$ make</div><div>
<br></div><div>bar.txt doesn't get overwritten after the second make.</div><div><br></div><div>Is there anything I'm doing wrong or do I have to detect existing files</div><div>and remove them before the copy?</div>
<div><br></div><div>Guillaume</div><div><br></div>