-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17,894 changed files
with
1,013,873 additions
and
179,936 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,16 @@ | ||
install(FILES cmake-help.vim cmake-indent.vim cmake-syntax.vim DESTINATION ${CMAKE_DATA_DIR}/editors/vim) | ||
install(FILES cmake-mode.el DESTINATION ${CMAKE_DATA_DIR}/editors/emacs) | ||
install(FILES cmake.m4 DESTINATION share/aclocal) | ||
# Install Vim files to a typical system integration directory. | ||
# Packagers can set CMake_INSTALL_VIMFILES_DIR to control this. | ||
if(NOT CMake_INSTALL_VIMFILES_DIR) | ||
set(CMake_INSTALL_VIMFILES_DIR ${CMAKE_XDGDATA_DIR}/vim/vimfiles) | ||
endif() | ||
install(DIRECTORY vim/indent vim/syntax DESTINATION ${CMake_INSTALL_VIMFILES_DIR}) | ||
|
||
# Install Emacs files to a typical system integration directory. | ||
# Packagers can set CMake_INSTALL_EMACS_DIR to control this. | ||
if(NOT CMake_INSTALL_EMACS_DIR) | ||
set(CMake_INSTALL_EMACS_DIR ${CMAKE_XDGDATA_DIR}/emacs/site-lisp) | ||
endif() | ||
install(FILES cmake-mode.el DESTINATION ${CMake_INSTALL_EMACS_DIR}) | ||
|
||
install(FILES cmake.m4 DESTINATION ${CMAKE_XDGDATA_DIR}/aclocal) | ||
add_subdirectory (bash-completion) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,21 @@ | ||
# Always install completion file in local dir | ||
# in order to be sure to always be able to install | ||
# in a local user directory rooted in a single directory. | ||
# packager should either patch that out or | ||
# add symlinks to the files in appropriate places | ||
# /etc/bash_completion.d/ | ||
# DATADIR/completions (may be /usr/share/<package>/completions | ||
install(FILES cmake cpack ctest DESTINATION ${CMAKE_DATA_DIR}/completions) | ||
# We need to integrate into the system install, or this will silently fail to | ||
# accomplish anything at all, and packagers won't even know it exists. Use the | ||
# `<sharedir>/bash-completion/completions/` hierarchy by default, rooted in | ||
# CMake's XDGDATA_DIR definition of the sharedir. This works with installation | ||
# to `/usr` or `/usr/local` (or any prefix which bash-completion is configured | ||
# with) as well as a simple installation by a local user into their home | ||
# directory *if* the prefix is `$HOME/.local` since `.local/share/` is part of | ||
# the bash-completion search path too. | ||
# For more complex installations, packagers can set CMake_INSTALL_BASH_COMP_DIR | ||
# to another system location. | ||
|
||
if(NOT CMake_INSTALL_BASH_COMP_DIR) | ||
if(CMAKE_BASH_COMP_DIR) | ||
# Honor previous customization option. | ||
set(CMake_INSTALL_BASH_COMP_DIR "${CMAKE_BASH_COMP_DIR}") | ||
else() | ||
# Default. | ||
set(CMake_INSTALL_BASH_COMP_DIR ${CMAKE_XDGDATA_DIR}/bash-completion/completions) | ||
endif() | ||
endif() | ||
install(FILES cmake cpack ctest DESTINATION ${CMake_INSTALL_BASH_COMP_DIR}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.