Skip to content

Commit

Permalink
cmake: Set RUNPATH for grass libraries in non-standard library path (#53
Browse files Browse the repository at this point in the history
)
  • Loading branch information
sebastic authored Dec 17, 2024
1 parent 96bf66e commit 1d7f4ae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ set(OLIB_SOURCES ogrgrassdriver.cpp ogrgrassdatasource.cpp ogrgrasslayer.cpp ogr
add_library(gdal_grass SHARED ${GLIB_SOURCES})
set_target_properties(gdal_grass PROPERTIES PREFIX "")
set_target_properties(gdal_grass PROPERTIES OUTPUT_NAME "gdal_GRASS")
set_target_properties(gdal_grass PROPERTIES INSTALL_RPATH "${GRASS_GISBASE}/lib")
target_include_directories(
gdal_grass PRIVATE ${CMAKE_SOURCE_DIR} ${GDAL_INCLUDE_DIR} ${PostgreSQL_INCLUDE_DIRS}
${GRASS_INCLUDE} ${PROJ_INCLUDE_DIRS})
Expand All @@ -61,6 +62,7 @@ install(TARGETS gdal_grass DESTINATION ${AUTOLOAD_DIR})
add_library(ogr_grass SHARED ${OLIB_SOURCES})
set_target_properties(ogr_grass PROPERTIES PREFIX "")
set_target_properties(ogr_grass PROPERTIES OUTPUT_NAME "ogr_GRASS")
set_target_properties(ogr_grass PROPERTIES INSTALL_RPATH "${GRASS_GISBASE}/lib")
target_include_directories(
ogr_grass PRIVATE ${CMAKE_SOURCE_DIR} ${GDAL_INCLUDE_DIR} ${PostgreSQL_INCLUDE_DIRS}
${GRASS_INCLUDE} ${PROJ_INCLUDE_DIRS})
Expand Down

0 comments on commit 1d7f4ae

Please sign in to comment.