From a3b6fa08b2fbc298c6ec0c42028ab78a5613d1de Mon Sep 17 00:00:00 2001 From: Claudio Bley Date: Thu, 7 Mar 2013 11:12:40 -0600 Subject: [PATCH] [libpng15] Use copy_if_different in the CREATE_SYMLINK macro. --- ANNOUNCE | 1 + CHANGES | 1 + CMakeLists.txt | 4 ++-- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ANNOUNCE b/ANNOUNCE index 92bf5ff1f..b7eb25804 100644 --- a/ANNOUNCE +++ b/ANNOUNCE @@ -101,6 +101,7 @@ Version 1.5.15beta09 [March 7, 2013] Changed the CREATE_SYMLINK macro to expact the full path to a file as the first argument. When symlinking the filename component of that path is determined and used as the link target. + Use copy_if_different in the CREATE_SYMLINK macro. Send comments/corrections/commendations to png-mng-implement at lists.sf.net (subscription required; visit diff --git a/CHANGES b/CHANGES index c7d3dc68f..4aaa7ea1d 100644 --- a/CHANGES +++ b/CHANGES @@ -4059,6 +4059,7 @@ Version 1.5.15beta09 [March 7, 2013] Changed the CREATE_SYMLINK macro to expact the full path to a file as the first argument. When symlinking the filename component of that path is determined and used as the link target. + Use copy_if_different in the CREATE_SYMLINK macro. Send comments/corrections/commendations to png-mng-implement at lists.sf.net (subscription required; visit diff --git a/CMakeLists.txt b/CMakeLists.txt index 80fbe0e6b..f39c7f766 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -197,8 +197,8 @@ macro(CREATE_SYMLINK SRC_FILE DEST_FILE) if(WIN32 AND NOT CYGWIN AND NOT MSYS) ADD_CUSTOM_COMMAND( OUTPUT ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${DEST_FILE} ${CMAKE_CURRENT_BINARY_DIR}/${DEST_FILE} - COMMAND ${CMAKE_COMMAND} -E copy "${SRC_FILE}" ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${DEST_FILE} - COMMAND ${CMAKE_COMMAND} -E copy "${SRC_FILE}" ${CMAKE_CURRENT_BINARY_DIR}/${DEST_FILE} + COMMAND ${CMAKE_COMMAND} -E copy_if_different "${SRC_FILE}" ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${DEST_FILE} + COMMAND ${CMAKE_COMMAND} -E copy_if_different "${SRC_FILE}" ${CMAKE_CURRENT_BINARY_DIR}/${DEST_FILE} DEPENDS ${PNG_LIB_TARGETS} ) ADD_CUSTOM_TARGET(${DEST_FILE}_COPY ALL DEPENDS ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${DEST_FILE})