git://developer.intra2net.com
/
libftdi
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
5f70b4c
)
Improve cpack packaging
author
Michel Zou
<xantares09@hotmail.com>
Thu, 6 Sep 2012 07:22:10 +0000 (09:22 +0200)
committer
Thomas Jarosch
<thomas.jarosch@intra2net.com>
Thu, 6 Sep 2012 07:22:10 +0000 (09:22 +0200)
- Filter out "build" directory
- source package name is arch-dependent
CMakeLists.txt
patch
|
blob
|
blame
|
history
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index
67640dc
..
ae68f1b
100644
(file)
--- a/
CMakeLists.txt
+++ b/
CMakeLists.txt
@@
-90,8
+90,8
@@
endif(${WIN32})
set(CPACK_RESOURCE_FILE_LICENSE ${CMAKE_SOURCE_DIR}/LICENSE)
set(CPACK_SOURCE_GENERATOR TGZ)
-set(CPACK_SOURCE_IGNORE_FILES "\\\\.git")
-set(CPACK_SOURCE_PACKAGE_FILE_NAME ${CPACK_PACKAGE_FILE_NAME})
+set(CPACK_SOURCE_IGNORE_FILES "\\\\.git;~$;build/")
+set(CPACK_SOURCE_PACKAGE_FILE_NAME ${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION})
# Subdirectories
if(${UNIX})