chore: rm Unused Build_Time macro and define

This commit is contained in:
sithlord48
2024-12-01 18:05:00 -05:00
committed by Chris Rizzitello
parent 03f1408a98
commit eb9e507a1f

View File

@ -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)