mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Add warning when building and installing are done by different users
This commit is contained in:
parent
f5715e7c14
commit
911230b037
1 changed files with 14 additions and 0 deletions
|
@ -212,3 +212,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 ()
|
||||
")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue