[cmake] do not set execution permission to regular files.
some regular files(e.g. files have no shebang and no execute
bit in source dir) are wrongly assigned an execution permission,
such as scanview.css and ear.c from libscanbuild, which is
unnecessary and introduces warnings in some envs.
Reviewed By: MaskRay, phosek
Differential Revision: https://reviews.llvm.org/D133308
NOKEYCHECK=True
GitOrigin-RevId: 73593145cb5b6bbb474e2c53153aabdb362731d5
diff --git a/CMakeLists.txt b/CMakeLists.txt
index bbdef93..30c93f8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -20,19 +20,19 @@
add_subdirectory(fuzzer)
endif()
-install(PROGRAMS clang-format-bbedit.applescript
+install(FILES clang-format-bbedit.applescript
DESTINATION "${CMAKE_INSTALL_DATADIR}/clang"
COMPONENT clang-format)
install(PROGRAMS clang-format-diff.py
DESTINATION "${CMAKE_INSTALL_DATADIR}/clang"
COMPONENT clang-format)
-install(PROGRAMS clang-format-sublime.py
+install(FILES clang-format-sublime.py
DESTINATION "${CMAKE_INSTALL_DATADIR}/clang"
COMPONENT clang-format)
-install(PROGRAMS clang-format.el
+install(FILES clang-format.el
DESTINATION "${CMAKE_INSTALL_DATADIR}/clang"
COMPONENT clang-format)
-install(PROGRAMS clang-format.py
+install(FILES clang-format.py
DESTINATION "${CMAKE_INSTALL_DATADIR}/clang"
COMPONENT clang-format)
install(PROGRAMS git-clang-format