mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	externals: allow users to use system libenet (#7100)
This commit is contained in:
		
							parent
							
								
									597a2e8ead
								
							
						
					
					
						commit
						d3ce43782d
					
				
					 3 changed files with 45 additions and 2 deletions
				
			
		
							
								
								
									
										10
									
								
								externals/CMakeLists.txt
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										10
									
								
								externals/CMakeLists.txt
									
										
									
									
										vendored
									
									
								
							|  | @ -228,8 +228,14 @@ else() | |||
| endif() | ||||
| 
 | ||||
| # ENet | ||||
| add_subdirectory(enet) | ||||
| target_include_directories(enet INTERFACE ./enet/include) | ||||
| if(USE_SYSTEM_ENET) | ||||
|     find_package(libenet REQUIRED) | ||||
|     add_library(enet INTERFACE) | ||||
|     target_link_libraries(enet INTERFACE libenet::libenet) | ||||
| else() | ||||
|     add_subdirectory(enet) | ||||
|     target_include_directories(enet INTERFACE ./enet/include) | ||||
| endif() | ||||
| 
 | ||||
| # Cubeb | ||||
| if (ENABLE_CUBEB) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue