Ignore generated files.
This commit is contained in:
+2
-1
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user