mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2024-11-14 13:27:41 -07:00
Make libslirp missing warning more clear, don't show one if it's found
This commit is contained in:
parent
e465ceff78
commit
cce72ddcfa
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user