Cmake build: Ignore also files with extension .patch --

These files should not be installed.
This commit is contained in:
Kornel Benko 2016-08-08 21:23:20 +02:00
parent 330e52b9cb
commit 5f5c966b19
2 changed files with 2 additions and 1 deletions

View File

@ -55,7 +55,7 @@ macro(lyx_install _what _parent_src_dir _gl_dir _file_type)
list(REMOVE_ITEM files_list "${_current_item}")
else()
if ("${_file_type}" STREQUAL "*")
foreach(_mask "/\\.[^/]+$" "\\.in$" "\\.py$" "CMakeLists\\.txt$" "\\.lyx~$")
foreach(_mask "/\\.[^/]+$" "\\.in$" "\\.py$" "\\.patch$" "CMakeLists\\.txt$" "\\.lyx~$")
if(_current_item MATCHES ${_mask})
#message(STATUS "removing item ${_current_item}")
list(REMOVE_ITEM files_list "${_current_item}")

View File

@ -169,6 +169,7 @@ SET(CPACK_SOURCE_IGNORE_FILES
"\\\\.swp$"
"\\\\.my$"
"\\\\.pyc$"
"\\\\.patch$"
"~$"
"/#"
"/_CPack_Packages/"