mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-24 21:16:56 +00:00
Ignore generated files.
This commit is contained in:
parent
191c2011f2
commit
cb389f9a09
5
.gitignore
vendored
5
.gitignore
vendored
@ -3,14 +3,15 @@
|
|||||||
/doc/doxyxml
|
/doc/doxyxml
|
||||||
/doc/html
|
/doc/html
|
||||||
/Testing
|
/Testing
|
||||||
/*.cmake
|
/*-test
|
||||||
/format-test
|
|
||||||
/install_manifest.txt
|
/install_manifest.txt
|
||||||
/tinyformat_speed_test
|
/tinyformat_speed_test
|
||||||
*~
|
*~
|
||||||
*.a
|
*.a
|
||||||
*.zip
|
*.zip
|
||||||
cmake_install.cmake
|
cmake_install.cmake
|
||||||
|
CPack*Config.cmake
|
||||||
|
CTestTestfile.cmake
|
||||||
CMakeCache.txt
|
CMakeCache.txt
|
||||||
CMakeFiles
|
CMakeFiles
|
||||||
Makefile
|
Makefile
|
||||||
|
@ -182,10 +182,11 @@ if (EXISTS .gitignore)
|
|||||||
file (STRINGS ".gitignore" lines)
|
file (STRINGS ".gitignore" lines)
|
||||||
LIST(REMOVE_ITEM lines /doc/html)
|
LIST(REMOVE_ITEM lines /doc/html)
|
||||||
foreach (line ${lines})
|
foreach (line ${lines})
|
||||||
|
string(REPLACE "." "[.]" line "${line}")
|
||||||
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} /.git /breathe /format-benchmark /sphinx)
|
set(ignored_files ${ignored_files} /.git /breathe /format-benchmark sphinx/)
|
||||||
|
|
||||||
set(CPACK_SOURCE_GENERATOR ZIP)
|
set(CPACK_SOURCE_GENERATOR ZIP)
|
||||||
set(CPACK_SOURCE_IGNORE_FILES ${ignored_files})
|
set(CPACK_SOURCE_IGNORE_FILES ${ignored_files})
|
||||||
|
Loading…
Reference in New Issue
Block a user