Skip to content

Conversation

@haider8645
Copy link
Contributor

Hello,

need this change to correctly have the pkg config dependencies listed in the .pc file

Best,
haider

@haider8645 haider8645 mentioned this pull request Mar 2, 2024
Comment on lines 66 to 72
set(pkg_config_dependencies "")

foreach(value ${PKG_CONFIG_DEPS})
set(pkg_config_dependencies "${pkg_config_dependencies} ${value}")
endforeach()

set(PKGCONFIG_REQUIRES ${pkg_config_dependencies})
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be done by list(JOIN PKG_CONFIG_DEPS " " PKGCONFIG_REQUIRES)

--> https://cmake.org/cmake/help/latest/command/list.html#reading

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as well, thanks!

@Rauldg
Copy link
Collaborator

Rauldg commented Mar 4, 2024

Is this independent of this other PR: #48?

Are they supposed to be merged together? I didn't notice a pkgconfig error before. Is this happening after the changes proposed in the other PR?

@chhtz
Copy link
Member

chhtz commented Mar 4, 2024

Is this independent of this other PR: #48?

This is a PR inside the branch of PR #48.

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