]> git.lyx.org Git - features.git/commitdiff
Cmake build: Ignore also files with extension .patch --
authorKornel Benko <kornel@lyx.org>
Mon, 8 Aug 2016 19:23:20 +0000 (21:23 +0200)
committerKornel Benko <kornel@lyx.org>
Mon, 8 Aug 2016 19:23:20 +0000 (21:23 +0200)
These files should not be installed.

development/cmake/Install.cmake
development/cmake/LyxPackaging.cmake

index 8ed041f193a76559aeccabcb7ae4612f2edb4dfc..f0bed94f89470af88bdc6a53bf7add8d9604ae7f 100755 (executable)
@@ -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}")
index 7a1916e26bfa64f97d4049a8d23bf4152764f9ad..b0f625823f1174c4e09e092d6ac9d2ff20e51d37 100644 (file)
@@ -169,6 +169,7 @@ SET(CPACK_SOURCE_IGNORE_FILES
 "\\\\.swp$"
 "\\\\.my$"
 "\\\\.pyc$"
+"\\\\.patch$"
 "~$"
 "/#"
 "/_CPack_Packages/"