CMake: Minor fix to handle missing IBVERBS

This commit is contained in:
2023-06-07 21:01:04 +02:00
parent b5d0b34fc8
commit 0b1bae7e8e
+2 -1
View File
@@ -9,11 +9,12 @@ ADD_LIBRARY(JungfraujochHost STATIC
MlxRawEthDevice.cpp MlxRawEthDevice.h
../../jungfrau/jf_packet.h LinuxSocketDevice.cpp LinuxSocketDevice.h FPGAAcquisitionDevice.cpp FPGAAcquisitionDevice.h)
TARGET_LINK_LIBRARIES(JungfraujochHost CommonFunctions HLSSimulation ${IBVERBS} JFCalibration)
TARGET_LINK_LIBRARIES(JungfraujochHost CommonFunctions HLSSimulation JFCalibration)
TARGET_INCLUDE_DIRECTORIES(JungfraujochHost PUBLIC ../../include)
FIND_LIBRARY(IBVERBS NAMES ibverbs DOC "Infiniband verbs")
IF(IBVERBS)
TARGET_COMPILE_DEFINITIONS(JungfraujochHost PUBLIC -DJFJOCH_USE_IBVERBS)
TARGET_LINK_LIBRARIES(JungfraujochHost ${IBVERBS})