mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 18:12:43 +00:00 
			
		
		
		
	 ce2f1b845f
			
		
	
	
		ce2f1b845f
		
	
	
	
	
		
			
			Otherwise, we end up propagating those dependencies into targets that link against that library, which creates unnecessary link-time dependencies. Also included are changes to readd now missing dependencies to tools that actually need them.
		
			
				
	
	
		
			14 lines
		
	
	
	
		
			497 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
	
		
			497 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
| 
 | |
| # HACK ALERT!
 | |
| # To avoid a circular dependency chain with LibCrypt --> LibCrypto --> LibCore --> LibCrypt
 | |
| # We include the SHA2 implementation from LibCrypto here manually
 | |
| add_library(LibCryptSHA2 OBJECT ../LibCrypto/Hash/SHA2.cpp)
 | |
| set_target_properties(LibCryptSHA2 PROPERTIES CXX_VISIBILITY_PRESET hidden)
 | |
| set_target_properties(LibCryptSHA2 PROPERTIES VISIBILITY_INLINES_HIDDEN ON)
 | |
| 
 | |
| set(SOURCES
 | |
|     crypt.cpp
 | |
| )
 | |
| 
 | |
| serenity_lib(LibCrypt crypt)
 | |
| target_link_libraries(LibCrypt PRIVATE LibCryptSHA2)
 |