Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ endif()

cmake_host_system_information(RESULT HOST_OS_NAME QUERY OS_NAME)

include(CMakeDependentOption)
cmake_dependent_option(FORCE_ENABLE_VIRTUALBOX "Enable VirtualBox" ON UNIX OFF)

if("${HOST_OS_NAME}" STREQUAL "macOS")
# needs to be set before "project"
set(VCPKG_HOST_OS "osx")
Expand Down Expand Up @@ -163,7 +166,7 @@ if(UNIX)
set(HOST_ARCH "aarch64")
endif ()

if (APPLE AND ${HOST_ARCH} MATCHES "x86_64")
if (FORCE_ENABLE_VIRTUALBOX OR (APPLE AND ${HOST_ARCH} MATCHES "x86_64"))
list(APPEND MULTIPASS_BACKENDS virtualbox)
endif()

Expand Down Expand Up @@ -342,8 +345,6 @@ else()
endif()

add_definitions(-DMULTIPASS_PLATFORM_LINUX)
set(MULTIPASS_BACKENDS qemu)

set(MULTIPASS_PLATFORM linux)
set(LINUX TRUE)
endif()
Expand Down
Loading