mirror of
				https://git.code.sf.net/p/libpng/code.git
				synced 2025-07-10 18:04:09 +02:00 
			
		
		
		
	[libpng16] Revised CMakeLists.txt to not attempt to make a symlink under mingw.
This commit is contained in:
		
							parent
							
								
									04c1c078b9
								
							
						
					
					
						commit
						1935d0738f
					
				
							
								
								
									
										5
									
								
								ANNOUNCE
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								ANNOUNCE
									
									
									
									
									
								
							| @ -1,5 +1,5 @@ | |||||||
| 
 | 
 | ||||||
| Libpng 1.6.0beta23 - May 23, 2012 | Libpng 1.6.0beta23 - May 29, 2012 | ||||||
| 
 | 
 | ||||||
| This is not intended to be a public release.  It will be replaced | This is not intended to be a public release.  It will be replaced | ||||||
| within a few weeks by a public version or by another test version. | within a few weeks by a public version or by another test version. | ||||||
| @ -369,7 +369,8 @@ Version 1.6.0beta22 [May 23, 2012] | |||||||
|     introducing new png_aligncast macros to do the cast in a way that clang |     introducing new png_aligncast macros to do the cast in a way that clang | ||||||
|     accepts. |     accepts. | ||||||
| 
 | 
 | ||||||
| Version 1.6.0beta23 [May 23, 2012] | Version 1.6.0beta23 [May 29, 2012] | ||||||
|  |   Revised CMakeLists.txt to not attempt to make a symlink under mingw. | ||||||
| 
 | 
 | ||||||
| Send comments/corrections/commendations to png-mng-implement at lists.sf.net | Send comments/corrections/commendations to png-mng-implement at lists.sf.net | ||||||
| (subscription required; visit | (subscription required; visit | ||||||
|  | |||||||
							
								
								
									
										3
									
								
								CHANGES
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								CHANGES
									
									
									
									
									
								
							| @ -4120,7 +4120,8 @@ Version 1.6.0beta22 [May 23, 2012] | |||||||
|     introducing new png_aligncast macros to do the cast in a way that clang |     introducing new png_aligncast macros to do the cast in a way that clang | ||||||
|     accepts. |     accepts. | ||||||
| 
 | 
 | ||||||
| Version 1.6.0beta23 [May 23, 2012] | Version 1.6.0beta23 [May 29, 2012] | ||||||
|  |   Revised CMakeLists.txt to not attempt to make a symlink under mingw. | ||||||
| 
 | 
 | ||||||
| Send comments/corrections/commendations to png-mng-implement at lists.sf.net | Send comments/corrections/commendations to png-mng-implement at lists.sf.net | ||||||
| (subscription required; visit | (subscription required; visit | ||||||
|  | |||||||
| @ -219,7 +219,7 @@ ENDIF(NOT CMAKE_LIBRARY_OUTPUT_DIRECTORY) | |||||||
| # copies if different. | # copies if different. | ||||||
| macro(CREATE_SYMLINK SRC_FILE DEST_FILE) | macro(CREATE_SYMLINK SRC_FILE DEST_FILE) | ||||||
|   FILE(REMOVE ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${DEST_FILE}) |   FILE(REMOVE ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${DEST_FILE}) | ||||||
|   if(WIN32 AND NOT CYGWIN AND NOT MINGW) |   if(WIN32 AND NOT CYGWIN AND NOT MSYS) | ||||||
|     ADD_CUSTOM_COMMAND( |     ADD_CUSTOM_COMMAND( | ||||||
|         OUTPUT ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${DEST_FILE}   ${CMAKE_CURRENT_BINARY_DIR}/${DEST_FILE} |         OUTPUT ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${DEST_FILE}   ${CMAKE_CURRENT_BINARY_DIR}/${DEST_FILE} | ||||||
|         COMMAND ${CMAKE_COMMAND} -E copy        ${CMAKE_CURRENT_BINARY_DIR}/${SRC_FILE} ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${DEST_FILE} |         COMMAND ${CMAKE_COMMAND} -E copy        ${CMAKE_CURRENT_BINARY_DIR}/${SRC_FILE} ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${DEST_FILE} | ||||||
| @ -227,10 +227,10 @@ macro(CREATE_SYMLINK SRC_FILE DEST_FILE) | |||||||
|         DEPENDS ${PNG_LIB_NAME} ${PNG_LIB_NAME_STATIC} |         DEPENDS ${PNG_LIB_NAME} ${PNG_LIB_NAME_STATIC} | ||||||
|         ) |         ) | ||||||
|     ADD_CUSTOM_TARGET(${DEST_FILE}_COPY ALL DEPENDS ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${DEST_FILE}) |     ADD_CUSTOM_TARGET(${DEST_FILE}_COPY ALL DEPENDS ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${DEST_FILE}) | ||||||
|   else(WIN32 AND NOT CYGWIN AND NOT MINGW) |   else(WIN32 AND NOT CYGWIN AND NOT MSYS) | ||||||
|     execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink ${SRC_FILE} ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${DEST_FILE} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}) |     execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink ${SRC_FILE} ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${DEST_FILE} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}) | ||||||
|     execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink ${SRC_FILE} ${DEST_FILE} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}) |     execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink ${SRC_FILE} ${DEST_FILE} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}) | ||||||
|   endif(WIN32 AND NOT CYGWIN AND NOT MINGW) |   endif(WIN32 AND NOT CYGWIN AND NOT MSYS) | ||||||
| endmacro() | endmacro() | ||||||
| 
 | 
 | ||||||
| # libpng is a library so default to 'lib' | # libpng is a library so default to 'lib' | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Glenn Randers-Pehrson
						Glenn Randers-Pehrson