close
Skip to content

Install pkgconfig only if module is built#3451

Merged
eXpl0it3r merged 1 commit into
masterfrom
bugfix/install-pkgconfig-per-module
Mar 1, 2025
Merged

Install pkgconfig only if module is built#3451
eXpl0it3r merged 1 commit into
masterfrom
bugfix/install-pkgconfig-per-module

Conversation

@eXpl0it3r

Copy link
Copy Markdown
Member

Description

Another upstream fix that was patched in vcpkg. Currently SFML always installs all pkgconfig files, even if you don't build for example sfml-audio. Moving the install command into the Macros.cmake should make sure that they're only installed if the module is also built.

This PR is related to the issue microsoft/vcpkg#42913

Tasks

  • Tested on Linux

How to test this PR?

Install SFML on a platform supporting pkgconfig and don't build one module. the sfml-all.pc and the specifically deselected sfml-module.pc should not be installed.

@eXpl0it3r eXpl0it3r added this to the 3.1 milestone Feb 26, 2025
@eXpl0it3r eXpl0it3r force-pushed the bugfix/install-pkgconfig-per-module branch from ead66e1 to 48f7d37 Compare February 26, 2025 14:31
@eXpl0it3r eXpl0it3r force-pushed the bugfix/install-pkgconfig-per-module branch from 48f7d37 to 31f426c Compare February 26, 2025 14:37
@eXpl0it3r eXpl0it3r merged commit 383a6f9 into master Mar 1, 2025
@eXpl0it3r eXpl0it3r deleted the bugfix/install-pkgconfig-per-module branch March 1, 2025 11:49
@github-project-automation github-project-automation Bot moved this from In Review to Done in SFML 3.1.0 Mar 1, 2025
@eXpl0it3r eXpl0it3r moved this from Backport to In Review in SFML 3.0.1 Mar 25, 2025
@eXpl0it3r eXpl0it3r moved this from In Review to Done in SFML 3.0.1 Mar 26, 2025
@eXpl0it3r eXpl0it3r modified the milestones: 3.1, 3.0.1 Apr 17, 2025
@oomek

oomek commented May 9, 2025

Copy link
Copy Markdown
Contributor

This PR has caused a regression.
I cannot say if it's related to how I build SFML by cross-compiling for Win32 with MXE on Ubuntu.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

No open projects
Status: Done
Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants