Skip to content

Conversation

@Nopey
Copy link
Member

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