Sinan Lin 73593145cb [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
2022-09-07 11:04:12 +08:00

29 lines
620 B
CMake

include_directories(${CMAKE_CURRENT_SOURCE_DIR}/..)
add_clang_tool(clang-include-fixer
ClangIncludeFixer.cpp
)
clang_target_link_libraries(clang-include-fixer
PRIVATE
clangBasic
clangFormat
clangFrontend
clangRewrite
clangSerialization
clangTooling
clangToolingCore
)
target_link_libraries(clang-include-fixer
PRIVATE
clangIncludeFixer
findAllSymbols
)
install(FILES clang-include-fixer.el
DESTINATION "${CMAKE_INSTALL_DATADIR}/clang"
COMPONENT clang-include-fixer)
install(FILES clang-include-fixer.py
DESTINATION "${CMAKE_INSTALL_DATADIR}/clang"
COMPONENT clang-include-fixer)