From 620f999e80560ecead7a70b016cec1d13b1aa0ee Mon Sep 17 00:00:00 2001 From: Mario Werner Date: Wed, 6 Apr 2016 09:49:34 +0200 Subject: [PATCH] ignore the current build directory when packaging This makes sure that the current build directory is not packaged with the regular source tree when `make package_source` is used. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 797be705..f326726c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -93,7 +93,7 @@ if (MASTER_PROJECT AND EXISTS ${gitignore}) string(REPLACE "*" ".*" line "${line}") set(ignored_files ${ignored_files} "${line}$" "${line}/") endforeach () - set(ignored_files ${ignored_files} + set(ignored_files ${ignored_files} ${PROJECT_BINARY_DIR} /.git /breathe /format-benchmark sphinx/ .buildinfo .doctrees) set(CPACK_SOURCE_GENERATOR ZIP)