binpac: Add warning when building and installing are done by different users

This commit is contained in:
Jon Siwek 2011-01-11 16:03:49 -06:00 committed by Tim Wojtulewicz
parent 4dd640d0f7
commit 2260d6c60e

View file

@ -106,3 +106,17 @@ message(
"\n"
"\n================================================================\n"
)
########################################################################
## Show warning when installing user is different from the one that configured
install(CODE "
if (NOT $ENV{USER} STREQUAL \$ENV{USER})
message(STATUS \"ATTENTION: Install is being performed by user \"
\"'\$ENV{USER}', but the build directory was configured by \"
\"user '$ENV{USER}'. This may result in a permissions error \"
\"when writing the install manifest, but you can ignore it \"
\"and consider the installation as successful if you don't \"
\"care about the install manifest.\")
endif ()
")