Skip to content

Commit

Permalink
Ignore generated files.
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed May 13, 2014
1 parent 191c201 commit cb389f9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
/doc/doxyxml
/doc/html
/Testing
/*.cmake
/format-test
/*-test
/install_manifest.txt
/tinyformat_speed_test
*~
*.a
*.zip
cmake_install.cmake
CPack*Config.cmake
CTestTestfile.cmake
CMakeCache.txt
CMakeFiles
Makefile
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,11 @@ if (EXISTS .gitignore)
file (STRINGS ".gitignore" lines)
LIST(REMOVE_ITEM lines /doc/html)
foreach (line ${lines})
string(REPLACE "." "[.]" line "${line}")
string(REPLACE "*" ".*" line "${line}")
set(ignored_files ${ignored_files} "${line}$" "${line}/")
endforeach ()
set(ignored_files ${ignored_files} /.git /breathe /format-benchmark /sphinx)
set(ignored_files ${ignored_files} /.git /breathe /format-benchmark sphinx/)

set(CPACK_SOURCE_GENERATOR ZIP)
set(CPACK_SOURCE_IGNORE_FILES ${ignored_files})
Expand Down

0 comments on commit cb389f9

Please sign in to comment.