Skip to content

Fix libnatpmp vcpkg port#709

Merged
Vagabond merged 5 commits into
omf2097:adt/nat-vpkgfrom
Nopey:fix-adt-nat-vpkg
Nov 2, 2024
Merged

Fix libnatpmp vcpkg port#709
Vagabond merged 5 commits into
omf2097:adt/nat-vpkgfrom
Nopey:fix-adt-nat-vpkg

Conversation

@Nopey

@Nopey Nopey commented Oct 31, 2024

Copy link
Copy Markdown
Member

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

Comment thread cmake-scripts/Findminiupnpc.cmake
@Nopey

Nopey commented Nov 1, 2024

Copy link
Copy Markdown
Member Author

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
@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