Skip to content

Commit

Permalink
Remove sha for source package
Browse files Browse the repository at this point in the history
This is now done outside of this makefile.
  • Loading branch information
Pierre-Sylvain Desse committed Aug 12, 2014
1 parent 4052e9f commit 95500b0
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions build/Package.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,3 @@ set(CPACK_SOURCE_IGNORE_FILES "${CMAKE_BINARY_DIR};\\\\.git/;\\\\.git$;\\\\.giti
set(CPACK_SOURCE_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}_${CPACK_PACKAGE_VERSION}_source")

include(CPack)

find_program(SHA1SUM_COMMAND sha1sum)
if(NOT SHA1SUM_COMMAND)
message(WARNING "Cannot find sha1sum command")
else()
add_custom_target(package_source_sha
COMMAND $(MAKE) package_source
COMMAND sha1sum ${CPACK_PACKAGE_NAME}_${CPACK_PACKAGE_VERSION}_source.tar.gz > ${CMAKE_BINARY_DIR}/${CPACK_PACKAGE_NAME}_${CPACK_PACKAGE_VERSION}_source.tar.gz.sha1.txt
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
COMMENT "Build source package" VERBATIM
)
endif()

0 comments on commit 95500b0

Please sign in to comment.