diff --git a/src/frontend/qt_sdl/CMakeLists.txt b/src/frontend/qt_sdl/CMakeLists.txt index c0d403f1..88abbea4 100644 --- a/src/frontend/qt_sdl/CMakeLists.txt +++ b/src/frontend/qt_sdl/CMakeLists.txt @@ -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()