mirror of
https://github.com/opencv/opencv.git
synced 2026-09-12 05:11:04 -05:00
Joining BINARIES_PATHS with an unconditional trailing separator creates an empty search-path entry when the variable was unset. On POSIX that empty entry is CWD (ld.so), so children can load the wrong libraries. Keep prepending extras, but only insert the separator when an old value exists. Same join on Windows PATH.