Skip to content

Commit

Permalink
Merge pull request #60260 from dhdeangelis/fixGrassBuildNoPostgres
Browse files Browse the repository at this point in the history
allow building with GRASS and without PostgreSQL
  • Loading branch information
m-kuhn authored Jan 25, 2025
2 parents 5bcde82 + 1f62867 commit 9e25ade
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/providers/grass/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ macro(ADD_GRASSLIB GRASS_BUILD_VERSION)
)
endif()

target_link_libraries(qgisgrass${GRASS_BUILD_VERSION} ${GRASS_TARGET_LINK_LIBRARIES${GRASS_BUILD_VERSION}} PostgreSQL::PostgreSQL)
target_link_libraries(qgisgrass${GRASS_BUILD_VERSION} ${GRASS_TARGET_LINK_LIBRARIES${GRASS_BUILD_VERSION}})
if(WITH_POSTGRESQL)
target_link_libraries(qgisgrass${GRASS_BUILD_VERSION} PostgreSQL::PostgreSQL)
endif()

if (WITH_GUI)
target_link_libraries(qgisgrass${GRASS_BUILD_VERSION}
Expand Down

0 comments on commit 9e25ade

Please sign in to comment.