Skip to content

Conversation

@gahr
Copy link
Contributor

@gahr gahr commented Oct 1, 2024

The current CMakeLists.txt fails to include the required link directories for 3rd-party packages. As an example, on FreeBSD where packages are installed under /usr/local, the link lines include -lgio-2.0 but not -L/usr/local/lib.

The suggested solution is to use the IMPORTED_TARGET mode of pkg_check_modules. This requires CMake 3.6, so I have bumped the minimum required version.

Copy link
Member

@evan-goode evan-goode left a comment

Choose a reason for hiding this comment

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

Sorry for the delay, LGTM. CI tests pass locally.

This requires CMake 3.6

Is it 3.7 actually? https://cmake.org/cmake/help/latest/module/FindPkgConfig.html#command:pkg_check_modules says IMPORTED_TARGET was added in 3.7.

gahr added 2 commits April 8, 2025 11:37
The current CMakeLists.txt fails to include the required link directories for 3rd-party packages.
As an example, on FreeBSD where packages are installed under /usr/local, the link lines include -lgio-2.0 but not -L/usr/local/lib.

The suggested solution is to use the IMPORTED_TARGET mode of pkg_check_modules. This requires CMake 3.6, so I have bumped the minimum required version.
@gahr gahr force-pushed the imported-target branch from 5e2a274 to e433b72 Compare April 8, 2025 11:37
@evan-goode
Copy link
Member

Thanks! I also added the minimum CMake version in the spec file.

@evan-goode evan-goode merged commit 3d93fbd into rpm-software-management:master Apr 9, 2025
11 checks passed
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