Skip to content

Commit

Permalink
Update driver find-modules to update search path
Browse files Browse the repository at this point in the history
 - Modify DPDK and Tofino Driver modules to add SDE_INSTALL_DIR
  to CMAKE_PREFIX_PATH.

Signed-off-by: Derek G Foster <[email protected]>
  • Loading branch information
ffoulkes committed Oct 14, 2023
1 parent a542e2e commit 074064f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmake/FindDpdkDriver.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ if(NOT SDE_INCLUDE_DIR)
endif()
mark_as_advanced(SDE_INCLUDE_DIR)

#-----------------------------------------------------------------------
# Add SDE install directory to search path
#-----------------------------------------------------------------------
list(APPEND CMAKE_PREFIX_PATH ${SDE_INSTALL_DIR})

#-----------------------------------------------------------------------
# Find libraries
#-----------------------------------------------------------------------
Expand Down
3 changes: 3 additions & 0 deletions cmake/FindEs2kDriver.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ if(NOT SDE_INCLUDE_DIR)
endif()
mark_as_advanced(SDE_INCLUDE_DIR)

#-----------------------------------------------------------------------
# Add SDE install directory to search path
#-----------------------------------------------------------------------
if(CMAKE_CROSSCOMPILING)
list(APPEND CMAKE_FIND_ROOT_PATH ${SDE_INSTALL_DIR})
else()
Expand Down
5 changes: 5 additions & 0 deletions cmake/FindTofinoDriver.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ if(NOT SDE_INCLUDE_DIR)
endif()
mark_as_advanced(SDE_INCLUDE_DIR)

#-----------------------------------------------------------------------
# Add SDE install directory to search path
#-----------------------------------------------------------------------
list(APPEND CMAKE_PREFIX_PATH ${SDE_INSTALL_DIR})

#-----------------------------------------------------------------------
# Find libraries
#-----------------------------------------------------------------------
Expand Down

0 comments on commit 074064f

Please sign in to comment.