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

Fix libnatpmp vcpkg port #709

Merged
merged 5 commits into from
Nov 2, 2024
Merged

Conversation

Nopey
Copy link
Contributor

@Nopey Nopey commented Oct 31, 2024

The link issue was because the MINIUPNP_STATICLIB and NATPMP_STATICLIB defines weren't being propogated from the dependency into openomf_core, which caused the headers to misbehave (and think they were part of a DLL build)

By linking to an imported cmake target we can be certain that any PUBLIC target_add_definitions in the libraries get to the openomf target we are linking them to, here openomf_core.

Unfortunately, ubuntu's libminiupnpc-dev does not ship an exported cmake target (they are probably using the Makefile to build their package); if they did ship an exported cmake target, we would be able to rid ourselves of the Findminiupnpc.cmake script entirely and rely on find_package(CONFIG).

@Nopey
Copy link
Contributor Author

Nopey commented Nov 1, 2024

note that the target branch of this PR is @Vagabond's adt/nat-vpkg branch, and not master.

@Vagabond Vagabond merged commit 71b1bd2 into omf2097:adt/nat-vpkg Nov 2, 2024
8 checks passed
@Nopey Nopey deleted the fix-adt-nat-vpkg branch November 18, 2024 03:45
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