Fix building source package

This commit is contained in:
Victor Zverovich 2016-05-08 07:28:34 -07:00
parent d2b65f77e8
commit fb67a2f660
2 changed files with 3 additions and 2 deletions

3
.gitignore vendored
View File

@ -9,8 +9,9 @@ virtualenv
*.a *.a
*.so* *.so*
*.zip *.zip
/*.cmake
cmake_install.cmake cmake_install.cmake
CPack*.cmake
fmt-*.cmake
CTestTestfile.cmake CTestTestfile.cmake
CMakeCache.txt CMakeCache.txt
CMakeFiles CMakeFiles

View File

@ -93,7 +93,7 @@ if (MASTER_PROJECT AND EXISTS ${gitignore})
string(REPLACE "*" ".*" line "${line}") string(REPLACE "*" ".*" line "${line}")
set(ignored_files ${ignored_files} "${line}$" "${line}/") set(ignored_files ${ignored_files} "${line}$" "${line}/")
endforeach () endforeach ()
set(ignored_files ${ignored_files} ${PROJECT_BINARY_DIR} set(ignored_files ${ignored_files}
/.git /breathe /format-benchmark sphinx/ .buildinfo .doctrees) /.git /breathe /format-benchmark sphinx/ .buildinfo .doctrees)
set(CPACK_SOURCE_GENERATOR ZIP) set(CPACK_SOURCE_GENERATOR ZIP)