Avoid setting CMAKE_INSTALL_PREFIX for packager builds.
They will set this value appropriately for installing packages in the system. We used it to create an install directory in the build dir from which we could run and test. I thought it was also needed for CPack, but that may be incorrect.
Create an option that is OFF by default that sets the install prefix as is done currently, so that system packagers won't be in conflict with this ad-hoc convention.
Avoid setting CMAKE_INSTALL_PREFIX for packager builds.
They will set this value appropriately for installing packages in the system. We used it to create an install directory in the build dir from which we could run and test. I thought it was also needed for CPack, but that may be incorrect.
Create an option that is OFF by default that sets the install prefix as is done currently, so that system packagers won't be in conflict with this ad-hoc convention.