mirror of
				https://git.proxmox.com/git/libgit2
				synced 2025-11-04 12:12:46 +00:00 
			
		
		
		
	Fix Mac build without OpenSSL
If OpenSSL is disabled on Mac the SHA1 implementation goes to the CommonCrypto from the system. In this case we should not include the generic hash impl. Otherwise there would be duplicated impls which fail the build.
This commit is contained in:
		
							parent
							
								
									57f45e7f4d
								
							
						
					
					
						commit
						2d2aa1ff6e
					
				@ -43,7 +43,6 @@ OPTION( VALGRIND			"Configure build for valgrind"			OFF )
 | 
			
		||||
 | 
			
		||||
IF(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
 | 
			
		||||
	SET( USE_ICONV ON )
 | 
			
		||||
	ADD_DEFINITIONS(-DGIT_COMMON_CRYPTO)
 | 
			
		||||
ENDIF()
 | 
			
		||||
 | 
			
		||||
IF(MSVC)
 | 
			
		||||
@ -173,6 +172,8 @@ ENDIF()
 | 
			
		||||
IF (WIN32 AND NOT MINGW AND NOT SHA1_TYPE STREQUAL "builtin")
 | 
			
		||||
	ADD_DEFINITIONS(-DWIN32_SHA1)
 | 
			
		||||
	FILE(GLOB SRC_SHA1 src/hash/hash_win32.c)
 | 
			
		||||
ELSEIF (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
 | 
			
		||||
	ADD_DEFINITIONS(-DGIT_COMMON_CRYPTO)
 | 
			
		||||
ELSEIF (OPENSSL_FOUND AND NOT SHA1_TYPE STREQUAL "builtin")
 | 
			
		||||
	ADD_DEFINITIONS(-DOPENSSL_SHA1)
 | 
			
		||||
	IF (CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user