Defer evaluation of CMAKE_INSTALL_PREFIX

Per #2765. This change should not be needed to close the bug, but it's
probably a good idea.
Merge pull request #7 from tstarling/defer-install-prefix

Defer evaluation of CMAKE_INSTALL_PREFIX