mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	externals: allow user to use system Vulkan headers (#7155)
This commit is contained in:
		
							parent
							
								
									19cc8e626b
								
							
						
					
					
						commit
						6f05dd9d1d
					
				
					 2 changed files with 12 additions and 1 deletions
				
			
		
							
								
								
									
										10
									
								
								externals/CMakeLists.txt
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										10
									
								
								externals/CMakeLists.txt
									
										
									
									
										vendored
									
									
								
							|  | @ -376,7 +376,15 @@ endif() | |||
| 
 | ||||
| # vulkan-headers | ||||
| add_library(vulkan-headers INTERFACE) | ||||
| target_include_directories(vulkan-headers SYSTEM INTERFACE ./vulkan-headers/include) | ||||
| if(USE_SYSTEM_VULKAN_HEADERS) | ||||
|     find_package(Vulkan REQUIRED) | ||||
|     if(TARGET Vulkan::Headers) | ||||
|         message(STATUS "Found Vulkan headers") | ||||
|         target_link_libraries(vulkan-headers INTERFACE Vulkan::Headers) | ||||
|     endif() | ||||
| else() | ||||
|     target_include_directories(vulkan-headers SYSTEM INTERFACE ./vulkan-headers/include) | ||||
| endif() | ||||
| if (APPLE) | ||||
|     target_include_directories(vulkan-headers SYSTEM INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/MoltenVK) | ||||
| endif() | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue