Fix "make package_source" target.
Hopefully fixes the Jenkins release builds... Also use bz2 compression only - same as for simgear.
This commit is contained in:
parent
4c321b6b80
commit
3100da1602
1 changed files with 4 additions and 2 deletions
|
@ -33,9 +33,11 @@ if(EXISTS ${PROJECT_SOURCE_DIR}/.gitignore)
|
|||
else()
|
||||
# clean tar-balls do not contain SCM (.git/.gitignore/...) files.
|
||||
set(CPACK_SOURCE_IGNORE_FILES
|
||||
"^${PROJECT_SOURCE_DIR}/.git;\\\\.gitignore;Makefile.am;~$;${CPACK_SOURCE_IGNORE_FILES}")
|
||||
"Makefile.am;~$;${CPACK_SOURCE_IGNORE_FILES}")
|
||||
endif()
|
||||
|
||||
list (APPEND CPACK_SOURCE_IGNORE_FILES "${PROJECT_SOURCE_DIR}/.git;\\\\.gitignore")
|
||||
|
||||
# split version string into components, note CMAKE_MATCH_0 is the entire regexp match
|
||||
string(REGEX MATCH "([0-9]+)\\.([0-9]+)\\.([0-9]+)" CPACK_PACKAGE_VERSION ${FLIGHTGEAR_VERSION} )
|
||||
set(CPACK_PACKAGE_VERSION_MAJOR ${CMAKE_MATCH_1})
|
||||
|
@ -44,7 +46,7 @@ set(CPACK_PACKAGE_VERSION_PATCH ${CMAKE_MATCH_3})
|
|||
SET(CPACK_RESOURCE_FILE_LICENSE "${PROJECT_SOURCE_DIR}/COPYING")
|
||||
SET(CPACK_RESOURCE_FILE_README "${PROJECT_SOURCE_DIR}/README")
|
||||
|
||||
set(CPACK_SOURCE_GENERATOR TBZ2 ZIP)
|
||||
set(CPACK_SOURCE_GENERATOR TBZ2)
|
||||
set(CPACK_SOURCE_PACKAGE_FILE_NAME "flightgear-${FLIGHTGEAR_VERSION}" CACHE INTERNAL "tarball basename")
|
||||
|
||||
include (CPack)
|
||||
|
|
Loading…
Reference in a new issue