B
B
Boris Dergachev2015-03-21 08:32:02
CMake
Boris Dergachev, 2015-03-21 08:32:02

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

1 answer(s)
B
Boris Dergachev, 2019-08-21
@froex

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 question

Ask a Question

731 491 924 answers to any question