cmake: Use pkg-config to find libpci
Change-Id: I1ab4397d88a2bd48ce0d6f2d3c33efcf47bc442f
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
[ROCm/ROCR-Runtime commit: 383f275aa7]
This commit is contained in:
committato da
Felix Kuehling
parent
e5784493c7
commit
0dded82034
@@ -90,8 +90,11 @@ add_library ( ${HSAKMT_TARGET} SHARED ${HSAKMT_SRC} )
|
||||
set_property ( TARGET ${HSAKMT_TARGET} PROPERTY VERSION "${LIB_VERSION_STRING}" )
|
||||
set_property ( TARGET ${HSAKMT_TARGET} PROPERTY SOVERSION "${BUILD_VERSION_MAJOR}" )
|
||||
|
||||
find_package(PkgConfig)
|
||||
pkg_check_modules(PC_LIBPCI REQUIRED libpci)
|
||||
include_directories ( ${PC_LIBPCI_INCLUDEDIR} )
|
||||
target_link_libraries ( ${HSAKMT_TARGET}
|
||||
pthread rt pci numa
|
||||
pthread rt numa ${PC_LIBPCI_LIBRARIES}
|
||||
)
|
||||
|
||||
## If the library is a release, strip the target library
|
||||
|
||||
Fai riferimento in un nuovo problema
Block a user