<div dir="ltr">Hi.<br>&nbsp; I try to write installation steps for my application. I need create some folders and copy some files to this folders. I use next commands:<br>&nbsp;&nbsp;&nbsp; install(TARGETS myApp DESTINATION . PERMISSIONS WORLD_READ WORLD_WRITE WORLD_EXECUTE)<br>

&nbsp;&nbsp;&nbsp; install(FILES myFile DESTINATION myfolder) <br><br>&nbsp; I have troubles with permissions of directories which were created during my application installation. Command `make install` should be executed with root privileges because I need to copy some libraries to /usr/lib/. But in this case all necessary folders also will be created with root permissions and my application can&#39;t create any files in this folders if it was executed without root privileges. For example folder from CMAKE_INSTALL_PREFIX variable also created with root privileges. And myApp try to create some log files in this directory and it failed because it hasn&#39;t necessary privileges. <br>
&nbsp; Have you any advance?<br>
<br>Thanks,<br>Yuri.<br></div>