[brlcad-commits] SF.net SVN: brlcad:[45311] brlcad/trunk/src/other/libpng/CMakeLists.txt
Open Source Solid Modeling CAD
Brought to you by:
brlcad
From: <sta...@us...> - 2011-06-29 18:35:38
|
Revision: 45311 http://brlcad.svn.sourceforge.net/brlcad/?rev=45311&view=rev Author: starseeker Date: 2011-06-29 18:35:32 +0000 (Wed, 29 Jun 2011) Log Message: ----------- Make sure we flush any old symlinks when re-running cmake. Modified Paths: -------------- brlcad/trunk/src/other/libpng/CMakeLists.txt Modified: brlcad/trunk/src/other/libpng/CMakeLists.txt =================================================================== --- brlcad/trunk/src/other/libpng/CMakeLists.txt 2011-06-29 18:21:18 UTC (rev 45310) +++ brlcad/trunk/src/other/libpng/CMakeLists.txt 2011-06-29 18:35:32 UTC (rev 45311) @@ -213,6 +213,7 @@ # Creates a symlink from src to dest (if possible) or alternatively # copies if different. macro(CREATE_SYMLINK SRC_FILE DEST_FILE) + FILE(REMOVE ${CMAKE_CURRENT_BINARY_DIR}/${DEST_FILE}) if(WIN32 AND NOT CYGWIN) execute_process(COMMAND ${CMAKE_COMMAND} -E copy ${SRC_FILE} ${DEST_FILE} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}) else(WIN32 AND NOT CYGWIN) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |