Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:munix9
zsync2
fix-cmake-vars.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix-cmake-vars.patch of Package zsync2
--- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -46,19 +46,17 @@ # WARNING: this value will be stored in the CMake cache # to update it, you will have to reset the CMake cache # (doesn't matter for CI builds like Travis for instance, where there's no permanent CMake cache) -execute_process( - COMMAND git rev-parse --short HEAD - WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} - OUTPUT_VARIABLE GIT_COMMIT - OUTPUT_STRIP_TRAILING_WHITESPACE -) +if (NOT GIT_COMMIT) + execute_process( + COMMAND git rev-parse --short HEAD + WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} + OUTPUT_VARIABLE GIT_COMMIT + OUTPUT_STRIP_TRAILING_WHITESPACE + ) +endif() # get current date -execute_process( - COMMAND env LC_ALL=C date -u "+%Y-%m-%d %H:%M:%S %Z" - OUTPUT_VARIABLE BUILD_DATE - OUTPUT_STRIP_TRAILING_WHITESPACE -) +string(TIMESTAMP BUILD_DATE "%Y-%m-%d %H:%M:%S" UTC) # config.h contains some global defines, our config.h.in is a modified version of the upstream config.h.in to make it # integrate with CMake
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor