aboutsummaryrefslogtreecommitdiff
path: root/cmake/LinuxPackages.cmake
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-10-13 11:46:01 +0000
committer_ov4 <ov4@ov4.org>2026-10-13 11:46:01 +0000
commit17c484d6502a2547e4807b9a5b888497175e5424 (patch)
tree06fdb47edf1935b214ce06e3821dbdb4b954b2b4 /cmake/LinuxPackages.cmake
parentec0ae47dd798e48e2409cbc544e17e2b13f550eb (diff)
build: share local-first dependency lookup across tools and libraries
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Diffstat (limited to 'cmake/LinuxPackages.cmake')
-rw-r--r--cmake/LinuxPackages.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmake/LinuxPackages.cmake b/cmake/LinuxPackages.cmake
index 9e9f26b..0412c4a 100644
--- a/cmake/LinuxPackages.cmake
+++ b/cmake/LinuxPackages.cmake
@@ -1,9 +1,10 @@
function(cpsc_prepare_linux_packages)
+ cpsc_find_dependency(PROGRAM cpsc_readlink NAMES readlink REQUIRED)
# Development packages can contain absolute links to runtime packages.
file(GLOB_RECURSE files LIST_DIRECTORIES FALSE "${CPSC_DEPS_ROOT}/*")
foreach(path IN LISTS files)
if(IS_SYMLINK "${path}")
- execute_process(COMMAND readlink "${path}" OUTPUT_VARIABLE target
+ execute_process(COMMAND "${cpsc_readlink}" "${path}" OUTPUT_VARIABLE target
OUTPUT_STRIP_TRAILING_WHITESPACE RESULT_VARIABLE result)
if(NOT result EQUAL 0)
message(FATAL_ERROR "Cannot read dependency symlink ${path}")