From 3361c05efdc7319f936dfd6f7b6694b96ded970d Mon Sep 17 00:00:00 2001 From: Cacodemon345 Date: Wed, 9 Feb 2022 21:49:11 +0600 Subject: [PATCH] Use external libslirp on Unix systems except macOS --- src/network/CMakeLists.txt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/network/CMakeLists.txt b/src/network/CMakeLists.txt index 5cfa87d91..c01c3643b 100644 --- a/src/network/CMakeLists.txt +++ b/src/network/CMakeLists.txt @@ -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) @@ -26,4 +30,4 @@ if(SLIRP_EXTERNAL) else() add_subdirectory(slirp) target_link_libraries(86Box slirp) -endif() \ No newline at end of file +endif()