Bugfix: Fixes #247, Some distros do not use /usr/sbin

This commit is contained in:
Rory Fewell
2023-12-03 16:22:33 +00:00
parent a2765991d6
commit 7ac4c6f4b6
2 changed files with 12 additions and 1 deletions

View File

@@ -37,6 +37,17 @@ else()
)
endif()
# Set up sbin/bin directory target (some distros don't use sbin)
#
if (
${WINTC_PKGMGR} STREQUAL "apk" OR
${WINTC_PKGMGR} STREQUAL "archpkg"
)
set(WINTC_SAFE_SBIN_DIR ${CMAKE_INSTALL_BINDIR})
else()
set(WINTC_SAFE_SBIN_DIR ${CMAKE_INSTALL_SBINDIR})
endif()
# Define dependency mapping function
#
function(wintc_map_dependencies)