Answer the question
In order to leave comments, you need to log in
How to set permissions in CMake rules?
I use the installation rules in CMake: install(FILES "script.sh" "${DIST_PATH}")
After execution, the file is copied, but the rights to run are not set. You have to do "chmod +x" on the file. How to rewrite CMake rule to automatically set execute permissions?
Answer the question
In order to leave comments, you need to log in
I'll answer my own old question:
install(PROGRAMS script.sh DESTINATION ${DIST_PATH} RENAME script)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question