diff --git a/src/providers/grass/CMakeLists.txt b/src/providers/grass/CMakeLists.txt index 41d162c4812..53da1efe283 100644 --- a/src/providers/grass/CMakeLists.txt +++ b/src/providers/grass/CMakeLists.txt @@ -132,7 +132,7 @@ macro(ADD_GRASSLIB GRASS_BUILD_VERSION) ) endif() - target_link_libraries(qgisgrass${GRASS_BUILD_VERSION} ${GRASS_TARGET_LINK_LIBRARIES${GRASS_BUILD_VERSION}}) + target_link_libraries(qgisgrass${GRASS_BUILD_VERSION} ${GRASS_TARGET_LINK_LIBRARIES${GRASS_BUILD_VERSION}} PostgreSQL::PostgreSQL) if (WITH_GUI) target_link_libraries(qgisgrass${GRASS_BUILD_VERSION}