Make libslirp missing warning more clear, don't show one if it's found

This commit is contained in:
Nadia Holmquist Pedersen 2021-12-04 12:47:34 +01:00
parent e465ceff78
commit cce72ddcfa
1 changed files with 4 additions and 4 deletions

View File

@ -78,17 +78,17 @@ find_package(PkgConfig REQUIRED)
find_package(Iconv REQUIRED)
pkg_check_modules(SDL2 REQUIRED sdl2)
pkg_check_modules(SLIRP slirp)
pkg_check_modules(LIBARCHIVE REQUIRED libarchive)
add_compile_definitions(ARCHIVE_SUPPORT_ENABLED)
if (SLIRP_FOUND)
option(ENABLE_LIBSLIRP "Enable use of libslirp for network sockets" ON)
message(STATUS "libslirp found, and libslirp support is enabled")
else()
option(ENABLE_LIBSLIRP "Enable use of libslirp for network sockets" OFF)
message(WARNING "libslirp not found, building without libslirp support!")
message(WARNING "libslirp was not found. Indirect-mode networking will be unavailable in this build.")
endif()
pkg_check_modules(LIBARCHIVE REQUIRED libarchive)
add_compile_definitions(ARCHIVE_SUPPORT_ENABLED)
if (WIN32 AND (CMAKE_BUILD_TYPE STREQUAL Release))
add_executable(melonDS WIN32 ${SOURCES_QT_SDL})
else()