cpack -B does not work with relative paths
I.e. when calling cpack -B pkg
from the build directory, cpack will try to install to /pkg
. Instead it should generate an appropriate absolute path based on the the current directory. I.e. $(pwd)/pkg
.
Edited by Mika Fischer