[CMake] Folder creation ownership/permissions
Ariel Garcia
garcia at iwr.fzk.de
Thu Sep 3 17:16:07 EDT 2009
Dear CMak'ers ;-)
probably a very silly question but i couldn't find the answer in the
docu/internet :-(
I am building a Debian package using CPack from CMake.
If i simply create the packages with
make packages (as a normal user)
then the files/folders in the package end up with my user ownership instead of
root, and the folders with mode 700 (my umask is 077).
The "simple" solution i've found is to run
umask 022 && fakeroot make package
Is there a way to control ownership and folder permissions from within CMake?
(file permissions i manage with INSTALL(FILES ...) )
Thanks a lot in advance!
Cheers, Ariel
More information about the CMake
mailing list