mirror of
				https://github.com/bytecodealliance/wasm-micro-runtime.git
				synced 2025-10-29 20:31:17 +00:00 
			
		
		
		
	 f51d98f850
			
		
	
	
		f51d98f850
		
			
		
	
	
	
	
		
			
			This PR attempts to search for the system libuv and use it if found instead of downloading it. As reported in #1831, this is needed because some tools build in a sandbox and clear the extra sources.
		
			
				
	
	
		
			26 lines
		
	
	
		
			685 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			685 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
| # Copyright (C) 2023 Intel Corporation.  All rights reserved.
 | |
| # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
 | |
| 
 | |
| # Find libuvwasi library
 | |
| # This module defines
 | |
| #  UVWASI_FOUND, if false, do not try to link to libuvwasi
 | |
| #  UVWASI_LIBRARIES
 | |
| #  UVWASI_INCLUDE_DIR, where to find headers
 | |
| 
 | |
| find_path(UVWASI_INCLUDE_DIR NAMES uvwasi.h wasi_serdes.h wasi_types.h PATH_SUFFIXES uvwasi)
 | |
| find_library(UVWASI_LIBRARIES NAMES uvwasi_a)
 | |
| 
 | |
| include(FindPackageHandleStandardArgs)
 | |
| 
 | |
| find_package_handle_standard_args(
 | |
|   UVWASI
 | |
|   FOUND_VAR UVWASI_FOUND
 | |
|   REQUIRED_VARS
 | |
|     UVWASI_LIBRARIES
 | |
|     UVWASI_INCLUDE_DIR
 | |
| )
 | |
| 
 | |
| if(UVWASI_FOUND)
 | |
|   set(UVWASI_INCLUDE_DIR ${UVWASI_INCLUDE_DIR}/uvwasi)
 | |
| endif()
 |