Small tweak to the previous patch to 'fix' the revision number -- http://www.pasteall.org/21511/diff Don't really know how to check if CPack is running to warn if CMAKE_INSTALL_PREFIX or WITH_INSTALL_PORTABLE is set to a bad value without messing up a regular cmake build. Dan