Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow building with GRASS and without PostgreSQL #60260

Merged
merged 2 commits into from
Jan 25, 2025

Conversation

dhdeangelis
Copy link
Contributor

Added changes suggested by @m-kuhn in #60038 (comment)

in: src/providers/grass/CMakeLists.txt:135 to

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()

This solves an issue encountered when building QGIS with GRASS but without PostgreSQL, when PostgreSQL::PostgreSQL could not be found.

Tested locally, works OK.

Copy link

github-actions bot commented Jan 24, 2025

🪟 Windows builds

Download Windows builds of this PR for testing.
Debug symbols for this build are available here.
(Built from commit 1f62867)

🪟 Windows Qt6 builds

Download Windows Qt6 builds of this PR for testing.
(Built from commit 1f62867)

@m-kuhn m-kuhn merged commit 9e25ade into qgis:master Jan 25, 2025
31 checks passed
@dhdeangelis dhdeangelis deleted the fixGrassBuildNoPostgres branch January 25, 2025 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants