Use external libslirp on Unix systems except macOS

This commit is contained in:
Cacodemon345
2022-02-09 21:49:11 +06:00
committed by GitHub
parent 2d6606489d
commit 3361c05efd

View File

@@ -16,8 +16,12 @@
add_library(net OBJECT network.c net_pcap.c net_slirp.c net_dp8390.c net_3c503.c
net_ne2000.c net_pcnet.c net_wd8003.c net_plip.c)
option(SLIRP_EXTERNAL "Link against the system-provided libslirp library" OFF)
mark_as_advanced(SLIRP_EXTERNAL)
if(NOT WIN32 AND NOT APPLE)
set(SLIRP_EXTERNAL 1)
else()
option(SLIRP_EXTERNAL "Link against the system-provided libslirp library" OFF)
mark_as_advanced(SLIRP_EXTERNAL)
endif()
if(SLIRP_EXTERNAL)
find_package(PkgConfig REQUIRED)