mirror of
https://github.com/termux/termux-packages.git
synced 2025-10-04 02:39:38 +00:00
26 lines
1.4 KiB
Diff
26 lines
1.4 KiB
Diff
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -149,9 +149,9 @@
|
|
set(LOADER_HELPER_FOLDER "Helper Targets")
|
|
|
|
if(UNIX)
|
|
- set(FALLBACK_CONFIG_DIRS "/etc/xdg" CACHE STRING
|
|
+ set(FALLBACK_CONFIG_DIRS "@TERMUX_PREFIX@/etc/xdg" CACHE STRING
|
|
"Search path to use when XDG_CONFIG_DIRS is unset or empty or the current process is SUID/SGID. Default is freedesktop compliant.")
|
|
- set(FALLBACK_DATA_DIRS "/usr/local/share:/usr/share" CACHE STRING
|
|
+ set(FALLBACK_DATA_DIRS "@TERMUX_PREFIX@/share" CACHE STRING
|
|
"Search path to use when XDG_DATA_DIRS is unset or empty or the current process is SUID/SGID. Default is freedesktop compliant.")
|
|
set(SYSCONFDIR "" CACHE STRING
|
|
"System-wide search directory. If not set or empty, CMAKE_INSTALL_FULL_SYSCONFDIR and /etc are used.")
|
|
@@ -338,8 +338,8 @@
|
|
target_compile_definitions(loader_common_options INTERFACE SYSCONFDIR="${CMAKE_INSTALL_FULL_SYSCONFDIR}")
|
|
|
|
# Make sure /etc is searched by the loader
|
|
- if(NOT (CMAKE_INSTALL_FULL_SYSCONFDIR STREQUAL "/etc"))
|
|
- target_compile_definitions(loader_common_options INTERFACE EXTRASYSCONFDIR="/etc")
|
|
+ if(NOT (CMAKE_INSTALL_FULL_SYSCONFDIR STREQUAL "@TERMUX_PREFIX@/etc"))
|
|
+ target_compile_definitions(loader_common_options INTERFACE EXTRASYSCONFDIR="@TERMUX_PREFIX@/etc")
|
|
endif()
|
|
endif()
|
|
endif()
|