From eb9e507a1f1c99ce21c60ba0a41bb16c732776f4 Mon Sep 17 00:00:00 2001 From: sithlord48 Date: Sun, 1 Dec 2024 18:05:00 -0500 Subject: [PATCH] chore: rm Unused Build_Time macro and define --- cmake/Build.cmake | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/cmake/Build.cmake b/cmake/Build.cmake index af65f6d29..749b7dc66 100644 --- a/cmake/Build.cmake +++ b/cmake/Build.cmake @@ -26,20 +26,10 @@ macro(configure_build) set(CMAKE_OSX_DEPLOYMENT_TARGET "12.0") endif() - set_build_date() configure_file_shared() endmacro() -macro(set_build_date) - # Since CMake 3.8.0, `string(TIMESTAMP ...)` respects `SOURCE_DATE_EPOCH` env var if set, - # which allows package maintainers to create reproducible builds. - # We require CMake 3.8.0 in the root `CMakeLists.txt` for this reason. - string(TIMESTAMP BUILD_DATE "%Y-%m-%d" UTC) - message(STATUS "Build date: ${BUILD_DATE}") - add_definitions(-DBUILD_DATE="${BUILD_DATE}") -endmacro() - macro(configure_file_shared) configure_file(${PROJECT_SOURCE_DIR}/src/lib/gui/gui_config.h.in ${PROJECT_BINARY_DIR}/config/gui_config.h)