Skip to content

Commit

Permalink
Have es2k package add itself to search path
Browse files Browse the repository at this point in the history
- Modify FindEs2kDriver to add the SDE_INSTALL_DIR to
  CMAKE_PREFIX_PATH or CMAKE_FIND_ROOT_PATH.

Signed-off-by: Derek G Foster <[email protected]>
  • Loading branch information
ffoulkes committed Oct 6, 2023
1 parent 343cf9c commit 1473d5e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmake/FindEs2kDriver.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ if(NOT SDE_INCLUDE_DIR)
endif()
mark_as_advanced(SDE_INCLUDE_DIR)

if(CMAKE_CROSSCOMPILING)
list(APPEND CMAKE_FIND_ROOT_PATH ${SDE_INSTALL_DIR})
else()
list(APPEND CMAKE_PREFIX_PATH ${SDE_INSTALL_DIR})
endif()

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

0 comments on commit 1473d5e

Please sign in to comment.