From 40cd5c48c08c979d07afc52268bf3eeee7ac5b06 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Sat, 26 May 2018 09:19:54 +0800 Subject: [PATCH] cmake: CPACK_SOURCE_IGNORE_FILES is a list of regular expressions --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ab1f63087..2ec23c706 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2113,7 +2113,7 @@ if (LWS_WITH_EXPORT_LWSTARGETS) endif() # build subdir is not part of sources -set(CPACK_SOURCE_IGNORE_FILES $(CPACK_SOURCE_IGNORE_FILES) ".git" "build" "tgz" "tar.gz") +set(CPACK_SOURCE_IGNORE_FILES $(CPACK_SOURCE_IGNORE_FILES) "/.git/" "/build/" "\\\\.tgz$" "\\\\.tar\\\\.gz$") # Most people are more used to "make dist" compared to "make package_source" add_custom_target(dist COMMAND "${CMAKE_MAKE_PROGRAM}" package_source)