diff options
author | Dominic Hargreaves <dom@earth.li> | 2016-04-21 22:23:25 +0100 |
---|---|---|
committer | Adam <Adam@anope.org> | 2016-10-02 13:59:15 -0400 |
commit | 04ab5f59663fe1e1ceb409d342e7a0f8c1d91728 (patch) | |
tree | e687a71ac7168b0a579eccb0baf917c976402233 /CMakeLists.txt | |
parent | ca9e3e12987e2cfb5b7685a82309f8d3c0ca0d3c (diff) |
Optionally strip variable build date from compiled program
To aid build reproducibility, don't include the build date/time if
-DREPRODUCIBLE_BUILD is defined.
Based on the patch provided by Alexis Bienvenüe in the Debian report.
Bug-Debian: https://bugs.debian.org/820152
Patch-Name: reproducible_datetime.diff
(cherry picked from commit fab07d6b75d8ddd9735b4bc02a57bf23cda5330f)
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 1705ac733..9e05bffb8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -67,6 +67,11 @@ endif() # Use the following directories as includes include_directories(${Anope_BINARY_DIR}/include ${Anope_SOURCE_DIR}/include) +# Pass on REPRODUCIBLE_BUILD +if(REPRODUCIBLE_BUILD) + add_definitions(-DREPRODUCIBLE_BUILD) +endif(REPRODUCIBLE_BUILD) + # If using Windows, always add the _WIN32 define if(WIN32) add_definitions(-D_WIN32) |