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

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -