mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2024-11-14 21:37:42 -07:00
Apply FixInterfaceIncludes to the slirp package again to work around
package inconsistencies
This commit is contained in:
parent
a174901412
commit
b47563e888
@ -1,3 +1,5 @@
|
|||||||
|
include(FixInterfaceIncludes)
|
||||||
|
|
||||||
add_library(net-utils STATIC
|
add_library(net-utils STATIC
|
||||||
Net.cpp
|
Net.cpp
|
||||||
Net_PCap.cpp
|
Net_PCap.cpp
|
||||||
@ -13,6 +15,7 @@ target_include_directories(net-utils PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/..")
|
|||||||
option(USE_SYSTEM_LIBSLIRP "Use system libslirp instead of the bundled version" OFF)
|
option(USE_SYSTEM_LIBSLIRP "Use system libslirp instead of the bundled version" OFF)
|
||||||
if (USE_SYSTEM_LIBSLIRP)
|
if (USE_SYSTEM_LIBSLIRP)
|
||||||
pkg_check_modules(Slirp REQUIRED IMPORTED_TARGET slirp)
|
pkg_check_modules(Slirp REQUIRED IMPORTED_TARGET slirp)
|
||||||
|
fix_interface_includes(PkgConfig::Slirp)
|
||||||
target_link_libraries(net-utils PRIVATE PkgConfig::Slirp)
|
target_link_libraries(net-utils PRIVATE PkgConfig::Slirp)
|
||||||
else()
|
else()
|
||||||
add_subdirectory(libslirp EXCLUDE_FROM_ALL)
|
add_subdirectory(libslirp EXCLUDE_FROM_ALL)
|
||||||
|
Loading…
Reference in New Issue
Block a user