Skip to content

Commit

Permalink
allow building with GRASS and without PostgreSQL
Browse files Browse the repository at this point in the history
  • Loading branch information
dhdeangelis committed Jan 24, 2025
1 parent c71a45a commit 6737300
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 6737300

Please sign in to comment.