[s1884] use the absolut path for CMAKE_INSTALL_PREFIX

Before this commit, building with a relative ${PREFIX} would cause the
build to fail.

(based on commit [12352] - b6bdff7)