dpdk: Only require libnuma on Linux 43/40643/2
authorTom Jones <thj@freebsd.org>
Thu, 1 Feb 2024 16:06:25 +0000 (16:06 +0000)
committerDamjan Marion <dmarion@0xa5.net>
Wed, 24 Apr 2024 11:30:34 +0000 (11:30 +0000)
On FreeBSD the numa APIs are always available.

Type: improvement
Change-Id: I34b8f6b0a81bc3d73f9b95b10d3a788dcdd71b65
Signed-off-by: Tom Jones <thj@freebsd.org>
src/plugins/dpdk/CMakeLists.txt

index 48b1548..48c56f3 100644 (file)
@@ -90,8 +90,10 @@ else()
     ##############################################################################
     # libnuma
     ##############################################################################
-    vpp_plugin_find_library(dpdk NUMA_LIB "numa")
-    list(APPEND DPDK_LINK_LIBRARIES ${NUMA_LIB})
+    if("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux")
+      vpp_plugin_find_library(dpdk NUMA_LIB "numa")
+      list(APPEND DPDK_LINK_LIBRARIES ${NUMA_LIB})
+    endif()
 
     ##############################################################################
     # Mellanox libraries