mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-27 09:46:20 -04:00
cmake: Add OS_FLATPAK flag
This adds an ENABLE_FLATPAK option which sets an OS_FLATPAK variable for linux builds, and causes any Flatpak-specific build logic to be enabled at configure time. Co-authored-by: PatTheMav <PatTheMav@users.noreply.github.com>
This commit is contained in:
committed by
Ryan Foster
co-authored by
PatTheMav
parent
4ab64d00d0
commit
f57b7083a5
@@ -17,4 +17,13 @@ elseif(CMAKE_HOST_SYSTEM_NAME MATCHES "Linux|FreeBSD|OpenBSD")
|
||||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/linux")
|
||||
string(TOUPPER "${CMAKE_HOST_SYSTEM_NAME}" _SYSTEM_NAME_U)
|
||||
set(OS_${_SYSTEM_NAME_U} TRUE)
|
||||
|
||||
option(ENABLE_FLATPAK "Enable Flatpak-specific implementations." OFF)
|
||||
mark_as_advanced(ENABLE_FLATPAK)
|
||||
|
||||
if(OS_LINUX AND ENABLE_FLATPAK)
|
||||
set(OS_FLATPAK TRUE)
|
||||
else()
|
||||
set(OS_FLATPAK FALSE)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user