mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-31 19:06:14 +01:00 
			
		
		
		
	 cb545f1116
			
		
	
	
	cb545f1116
	
	
	
		
			
			- use FIND_PACKAGE(LIBAIO) to find libaio
- Use standard CMake conventions in Find{PMEM,URING}.cmake
- Drop the LIB from LIB{PMEM,URING}_{INCLUDE_DIR,LIBRARIES}
  It is cleaner, and consistent with how other packages are handled in CMake.
  e.g successful FIND_PACKAGE(PMEM) now sets PMEM_FOUND, PMEM_LIBRARIES,
  PMEM_INCLUDE_DIR, not  LIBPMEM_{FOUND,LIBRARIES,INCLUDE_DIR}.
- Decrease the output. use FIND_PACKAGE with QUIET argument.
- for Linux packages, either liburing, or libaio is required
  If liburing is installed, libaio does not need to be present   .
  Use FIND_PACKAGE([LIBAIO|URING] REQUIRED) if either library is required.
		
	
			
		
			
				
	
	
		
			9 lines
		
	
	
	
		
			277 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
	
		
			277 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
| find_path(URING_INCLUDE_DIR NAMES liburing.h)
 | |
| find_library(URING_LIBRARIES NAMES uring)
 | |
| 
 | |
| include(FindPackageHandleStandardArgs)
 | |
| FIND_PACKAGE_HANDLE_STANDARD_ARGS(
 | |
|     URING DEFAULT_MSG
 | |
|     URING_LIBRARIES URING_INCLUDE_DIR)
 | |
| 
 | |
| mark_as_advanced(URING_INCLUDE_DIR URING_LIBRARIES)
 |