Changeset View
Changeset View
Standalone View
Standalone View
Modules/CMakeLists.txt
Show All 38 Lines | |||||
39 | 39 | | |||
40 | find_package(PCIUTILS MODULE) | 40 | find_package(PCIUTILS MODULE) | ||
41 | set_package_properties(PCIUTILS PROPERTIES DESCRIPTION "PciUtils is a library for direct access to PCI slots" | 41 | set_package_properties(PCIUTILS PROPERTIES DESCRIPTION "PciUtils is a library for direct access to PCI slots" | ||
42 | URL "http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml" | 42 | URL "http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml" | ||
43 | TYPE OPTIONAL | 43 | TYPE OPTIONAL | ||
44 | PURPOSE "View PCI details in kinfocenter." | 44 | PURPOSE "View PCI details in kinfocenter." | ||
45 | ) | 45 | ) | ||
46 | 46 | | |||
47 | if(NOT APPLE AND NOT ${CMAKE_SYSTEM_PROCESSOR} MATCHES "arm" AND NOT ${CMAKE_SYSTEM_PROCESSOR} MATCHES "aarch64") | 47 | # PCI module doesn't work on Linux arm64, nor on MacOS, but does on | ||
48 | # FreeBSD arm64, so this is a bit of a tangle of what-is-supported. | ||||
49 | set(_want_pci ON) | ||||
50 | if(APPLE) | ||||
51 | set(_want_pci OFF) | ||||
52 | elseif(${CMAKE_SYSTEM_PROCESSOR} MATCHES "arm" OR ${CMAKE_SYSTEM_PROCESSOR} MATCHES "aarch64") | ||||
53 | if (${CMAKE_SYSTEM} MATCHES "FreeBSD") | ||||
54 | message(STATUS "FreeBSD arm64 pci support enabled.") | ||||
55 | else() | ||||
56 | set(_want_pci OFF) | ||||
57 | endif() | ||||
58 | endif() | ||||
59 | | ||||
60 | if(_want_pci) | ||||
48 | add_subdirectory( pci ) | 61 | add_subdirectory( pci ) | ||
49 | endif() | 62 | endif() | ||
50 | endif() | 63 | endif() | ||
51 | 64 | | |||
52 | find_package(RAW1394 MODULE) | 65 | find_package(RAW1394 MODULE) | ||
53 | set_package_properties(RAW1394 PROPERTIES DESCRIPTION "library for direct access to IEEE 1394 bus" | 66 | set_package_properties(RAW1394 PROPERTIES DESCRIPTION "library for direct access to IEEE 1394 bus" | ||
54 | URL "http://www.linux1394.org/" | 67 | URL "http://www.linux1394.org/" | ||
55 | TYPE OPTIONAL | 68 | TYPE OPTIONAL | ||
Show All 12 Lines |