summaryrefslogtreecommitdiff
path: root/indra/cmake/UnixInstall.cmake
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2026-07-31 19:29:02 +0800
committerErik Kundiman <erik@megapahit.org>2026-07-31 19:29:02 +0800
commit7e47eff5042c2fb897c8eee1219889a84ca3bf36 (patch)
tree2527d29a965dd54463f4d82834c86906996db22d /indra/cmake/UnixInstall.cmake
parentf94ad55c430f1b898e74871233703b12e48b8fce (diff)
Compare LINUX_DISTRO with freedesktop on FlatpakHEADmain
so no need for USE_FLATPAK, and just maybe there are some other platforms that use this runtime as the distro info.
Diffstat (limited to 'indra/cmake/UnixInstall.cmake')
-rw-r--r--indra/cmake/UnixInstall.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/cmake/UnixInstall.cmake b/indra/cmake/UnixInstall.cmake
index 34c3ed0ec9..70107fea9a 100644
--- a/indra/cmake/UnixInstall.cmake
+++ b/indra/cmake/UnixInstall.cmake
@@ -6,7 +6,7 @@ set(INSTALL OFF CACHE BOOL
"Generate install target.")
if (INSTALL)
- if (USE_FLATPAK OR CMAKE_SYSTEM_NAME MATCHES FreeBSD)
+ if (${LINUX_DISTRO} MATCHES freedesktop OR CMAKE_SYSTEM_NAME MATCHES FreeBSD)
set(INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX} CACHE PATH
"Top-level installation directory.")
else ()
@@ -14,7 +14,7 @@ if (INSTALL)
"Top-level installation directory.")
endif ()
- if (USE_FLATPAK)
+ if (${LINUX_DISTRO} MATCHES freedesktop)
set(_LIB lib)
elseif (${LINUX_DISTRO} MATCHES debian OR (${LINUX_DISTRO} MATCHES ubuntu))
set(_LIB lib/${ARCH}-linux-gnu/${VIEWER_BINARY_NAME})
@@ -37,7 +37,7 @@ if (INSTALL)
set(APP_SHARE_DIR ${INSTALL_SHARE_DIR}/${VIEWER_BINARY_NAME}
CACHE PATH
"Installation directory for read-only data files.")
- if (USE_FLATPAK)
+ if (${LINUX_DISTRO} MATCHES freedesktop)
set(APP_LIBEXEC_DIR ${INSTALL_PREFIX}/libexec
CACHE PATH
"Installation directory for non-manual executables.")