From 8e5f79abd41ddec5eead882902c06aa10d0e4e16 Mon Sep 17 00:00:00 2001 From: Matt Firth Date: Tue, 21 May 2024 12:53:46 +0100 Subject: [PATCH] Don't do PDF timestamp check if running on CI --- packaging/CMakeLists.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packaging/CMakeLists.txt b/packaging/CMakeLists.txt index aafd326b..5bd0a28b 100644 --- a/packaging/CMakeLists.txt +++ b/packaging/CMakeLists.txt @@ -17,9 +17,11 @@ function(check_commit_timestamp_not_after SOURCE_FILE DEST_FILE) endif() endfunction() -check_commit_timestamp_not_after(LICENSE.md LICENSE.pdf) -check_commit_timestamp_not_after(${PROJECT_SOURCE_DIR}/CHANGELOG.md README.pdf) -check_commit_timestamp_not_after(README.md.in README.pdf) +if(NOT EPS_CI) # This prevents build failure if the runner generating the docs has a system time behind the system used to modify the MDs + check_commit_timestamp_not_after(LICENSE.md LICENSE.pdf) + check_commit_timestamp_not_after(${PROJECT_SOURCE_DIR}/CHANGELOG.md README.pdf) + check_commit_timestamp_not_after(README.md.in README.pdf) +endif() add_custom_target(generate-package-docs COMMAND