Re: [CMake] file(COPY) is copying even if file hasn't changed

2017-07-20 Thread Nicholas Devenish
For what it's worth, I'm not seeing this on Sierra 10.12.5, CMake 3.9.0 on a simple test case of: cmake_minimum_required(VERSION 3.5 FATAL_ERROR) file(COPY afile DESTINATION .) I ran through Instruments to check the otherwise silent copy, it copies the first time but thereafter only stat

Re: [CMake] file(COPY) is copying even if file hasn't changed

2017-07-20 Thread Robert Dailey
FYI I decided to file an issue for this here: https://gitlab.kitware.com/cmake/cmake/issues/17087 On Wed, Jul 19, 2017 at 4:05 PM, Robert Dailey wrote: > Oh also file(INSTALL) does the same thing; the "Installing:" message > gets printed each time for the same file, and

Re: [CMake] file(COPY) is copying even if file hasn't changed

2017-07-19 Thread Robert Dailey
Oh also file(INSTALL) does the same thing; the "Installing:" message gets printed each time for the same file, and never says that it is "up to date". On Wed, Jul 19, 2017 at 4:04 PM, Robert Dailey wrote: > According to the documentation for file(COPY) [1]: "Copying

[CMake] file(COPY) is copying even if file hasn't changed

2017-07-19 Thread Robert Dailey
According to the documentation for file(COPY) [1]: "Copying preserves input file timestamps, and optimizes out a file if it exists at the destination with the same timestamp" However this is not the case. My host OS is Windows 10 and I'm using CMake 3.9.0-rc5. Each time my CMakeLists.txt is run,