cmake: CPACK_SOURCE_IGNORE_FILES is a list of regular expressions

This commit is contained in:
Steffen Vogel 2018-05-26 00:39:23 +02:00
parent 49c7e8238b
commit 1d50362a1e

View file

@ -2110,7 +2110,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)