mirror of
				https://github.com/bytecodealliance/wasm-micro-runtime.git
				synced 2025-10-31 13:17:31 +00:00 
			
		
		
		
	 d085d1ccf7
			
		
	
	
		d085d1ccf7
		
			
		
	
	
	
	
		
			
			``` CMake Error at CMakeLists.txt:4 (cmake_minimum_required): Compatibility with CMake < 3.5 has been removed from CMake. Update the VERSION argument <min> value. Or, use the <min>...<max> syntax to tell CMake that the project requires at least <min> but has been updated to work with policies introduced by <max> or earlier. Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway. ```
		
			
				
	
	
		
			33 lines
		
	
	
		
			743 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			743 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
| # Copyright (C) 2019 Intel Corporation.  All rights reserved.
 | |
| # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
 | |
| 
 | |
| cmake_minimum_required(VERSION 3.14)
 | |
| 
 | |
| project (test-libc-builtin)
 | |
| 
 | |
| add_definitions (-DRUN_ON_LINUX)
 | |
| 
 | |
| set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
 | |
| 
 | |
| set (WAMR_BUILD_LIBC_WASI 0)
 | |
| set (WAMR_BUILD_APP_FRAMEWORK 0)
 | |
| 
 | |
| include (../unit_common.cmake)
 | |
| 
 | |
| include_directories (${CMAKE_CURRENT_SOURCE_DIR})
 | |
| 
 | |
| file (GLOB_RECURSE source_all ${CMAKE_CURRENT_SOURCE_DIR}/*.cc)
 | |
| 
 | |
| set (UNIT_SOURCE ${source_all})
 | |
| 
 | |
| set (unit_test_sources
 | |
|      ${UNIT_SOURCE}
 | |
|      ${WAMR_RUNTIME_LIB_SOURCE}
 | |
|     )
 | |
| 
 | |
| add_executable (libc_builtin_test ${unit_test_sources})
 | |
| 
 | |
| target_link_libraries (libc_builtin_test gtest_main)
 | |
| 
 | |
| gtest_discover_tests(libc_builtin_test)
 |