VFIO - Virtual Function I/O
Co-Authored-By: richardg867 <540874+richardg867@users.noreply.github.com>
This commit is contained in:
@@ -81,6 +81,17 @@ if(ISAMEM_BRAT)
|
||||
target_compile_definitions(dev PRIVATE USE_ISAMEM_BRAT)
|
||||
endif()
|
||||
|
||||
if(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
||||
if(VFIO)
|
||||
include(CheckIncludeFile)
|
||||
check_include_file("linux/vfio.h" VFIO_AVAILABLE)
|
||||
if(VFIO_AVAILABLE)
|
||||
add_compile_definitions(USE_VFIO)
|
||||
target_sources(dev PRIVATE vfio.c)
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(LASERXT)
|
||||
target_compile_definitions(dev PRIVATE USE_LASERXT)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user