cmake - Set permissions of the installation directory -


I would like to change the permissions on the installed directory (specified in CMAKE_INSTALL_PREFIX), but I do not know how to do it

For example, if I have CMAKE_INSTALL_PREFIX / softs / myappli /, then I am able to set the permission for all my files. 64 / GCC / 4.7.2 When I "install" my I would like to be able to set the permission for / softs / myappli to "700".

you use the install command / signature given below Can:

  install ([[SCRIPT & lt; file & gt;] [code & lt; code & gt;]] [...])   

and type the code to change permissions on the installed time. To wit. Smth:

  execute_process (COMMAND / bin / chmod ARGS 0700 "$ {CMAKE_INSTALL_PREFIX}")   

Put it on a chmod Cmake or a string, and then up to install .

Comments

Popular posts from this blog

Out of index C/C++ -

regex - PatternSyntaxException: while using String.ReplaceAll function in java? -

objective c - how Set autolayout for multiple dynamic buttons and labells in iOS? -