mirror of
				https://git.wownero.com/wownero/wownero.git
				synced 2024-08-15 01:03:23 +00:00 
			
		
		
		
	cmake: transitive deps and remove deprecated LINK_*
Keep the immediate direct deps at the library that depends on them, declare deps as PUBLIC so that targets that link against that library get the library's deps as transitive deps. Break dep cycle between blockchain_db <-> crytonote_core. No code refactoring, just hide cycle from cmake so that it doesn't complain (cycles are allowed only between static libs, not shared libs). This is in preparation for supproting BUILD_SHARED_LIBS cmake built-in option for building internal libs as shared.
This commit is contained in:
		
							parent
							
								
									54010b97b4
								
							
						
					
					
						commit
						e1c7af35d4
					
				
					 29 changed files with 101 additions and 114 deletions
				
			
		| 
						 | 
				
			
			@ -35,8 +35,9 @@ add_executable(difficulty-tests
 | 
			
		|||
  ${difficulty_sources}
 | 
			
		||||
  ${difficulty_headers})
 | 
			
		||||
target_link_libraries(difficulty-tests
 | 
			
		||||
  LINK_PRIVATE
 | 
			
		||||
    cryptonote_core)
 | 
			
		||||
  PRIVATE
 | 
			
		||||
    cryptonote_core
 | 
			
		||||
    ${EXTRA_LIBRARIES})
 | 
			
		||||
set_property(TARGET difficulty-tests
 | 
			
		||||
  PROPERTY
 | 
			
		||||
    FOLDER "tests")
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue