Skip to content

Commit

Permalink
Set correct permission when installing gcc-rtags-wrapper.sh
Browse files Browse the repository at this point in the history
- Remove superfluous code
  • Loading branch information
casch-at committed Dec 15, 2015
1 parent 766a50b commit 71f5031
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,6 @@ if (CYGWIN)
EnsureLibraries(rdm rct)
endif ()

if (NOT "${PROJECT_SOURCE_DIR}" STREQUAL "${PROJECT_BINARY_DIR}")
file (GLOB binFiles "${PROJECT_SOURCE_DIR}/bin/*")
file (MAKE_DIRECTORY "${PROJECT_BINARY_DIR}/bin")
message("Copying files from ${PROJECT_SOURCE_DIR}/bin to ${PROJECT_BINARY_DIR}/bin")
file (COPY ${binFiles} DESTINATION "${PROJECT_BINARY_DIR}/bin")
endif ()

if (EMACS)
set(EMACS_EXECUTABLE ${EMACS})
else ()
Expand Down Expand Up @@ -213,7 +206,8 @@ if (BASH_COMPLETION_FOUND)
DESTINATION ${BASH_COMPLETION_COMPLETIONSDIR})
endif ()
install(TARGETS rdm rc rp RUNTIME DESTINATION bin COMPONENT rtags)
install(FILES ../bin/gcc-rtags-wrapper.sh DESTINATION bin)
install(FILES ../bin/gcc-rtags-wrapper.sh DESTINATION bin
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
install(FILES ../man/man7/rc.7 ../man/man7/rdm.7 DESTINATION share/man/man7/)
if (NOT RTAGS_NO_ELISP_FILES)
install(FILES ${RTAGS_ELISP_SOURCES} DESTINATION ${RTAGS_ELISP_INSTALL_LOCATION})
Expand Down

0 comments on commit 71f5031

Please sign in to comment.