Skip to content

Commit c32c79b

Browse files
committed
Merge pull request #2795 from karwa/install-prefix
2 parents f36cc94 + c8a196a commit c32c79b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

utils/build-script-impl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -957,6 +957,11 @@ function get_host_install_prefix() {
957957
local host_install_prefix="${INSTALL_PREFIX}"
958958
fi
959959

960+
# Should always begin with a '/'; otherwise CMake will expand it as a relative path from the build folder.
961+
if [[ "${host_install_prefix:0:1}" != "/" ]]; then
962+
host_install_prefix="/${host_install_prefix}"
963+
fi
964+
960965
echo "${host_install_prefix}/" # Should always end in a '/'; it's a directory.
961966
}
962967

0 commit comments

Comments
 (0)