Add warning when libslirp is not found

This commit is contained in:
Rayyan Ansari 2021-10-02 11:23:24 +01:00 committed by GitHub
parent 43526aba95
commit 02df7964b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -75,8 +75,10 @@ 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!")
endif()
if (WIN32 AND (CMAKE_BUILD_TYPE STREQUAL Release))