build: Add ALLOW_PORTABLE flag (#1464)

* Add ALLOW_PORTABLE cmake flag
* Also check that `portable` is a directory
This commit is contained in:
capitalistspz 2024-12-30 17:49:51 +00:00 committed by GitHub
parent 2b0cbf7f6b
commit 1e30d72658
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 18 additions and 7 deletions

View file

@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 3.21.1)
option(ENABLE_VCPKG "Enable the vcpkg package manager" ON)
option(MACOS_BUNDLE "The executable when built on macOS will be created as an application bundle" OFF)
option(ALLOW_PORTABLE "Allow Cemu to be run in portable mode" ON)
# used by CI script to set version:
set(EMULATOR_VERSION_MAJOR "0" CACHE STRING "")