Commit a81c3a97 authored by Emmanuel Promayon's avatar Emmanuel Promayon
Browse files

FIXED debian packaging bug#794740

parent 5bbe13de
......@@ -179,10 +179,19 @@ mark_as_advanced (CAMITK_CORE_LIB CAMITK_LINK_DIRECTORIES CAMITK_INCLUDE_DIRECTO
# additional unix system resources
if (UNIX)
# only possible on unix
execute_process(COMMAND "date" "+%Y-%m-%d"
OUTPUT_VARIABLE CURRENT_DATE
OUTPUT_STRIP_TRAILING_WHITESPACE
)
if(DEFINED ENV{SOURCE_DATE_EPOCH})
# to enable reproducible builds, see debian bug #794740
execute_process(COMMAND "date" "-u" "+%Y-%m-%d" "--date=@$ENV{SOURCE_DATE_EPOCH}"
OUTPUT_VARIABLE CURRENT_DATE
OUTPUT_STRIP_TRAILING_WHITESPACE
)
else()
execute_process(COMMAND "date" "+%Y-%m-%d"
OUTPUT_VARIABLE CURRENT_DATE
OUTPUT_STRIP_TRAILING_WHITESPACE
)
endif()
# Application man pages (always in section 1, this is an application...)
set(CAMITK_APPLICATION_MAN_INSTALL_DIR "share/man/man1")
# Desktop file always in share/applications (freedesktop standard)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment