Don't include timestamp in build, breaks reproducability
Signed-off-by: Björn Bidar <bjorn.bidar@thaodan.de>
This commit is contained in:
@@ -1,8 +1,6 @@
|
|||||||
cmake_minimum_required(VERSION 3.0 FATAL_ERROR)
|
cmake_minimum_required(VERSION 3.0 FATAL_ERROR)
|
||||||
project(i3ipc++)
|
project(i3ipc++)
|
||||||
|
|
||||||
string(TIMESTAMP I3IPCppBUILD_DATETIME "%Y-%m-%d %H:%M:%S")
|
|
||||||
|
|
||||||
option(I3IPCpp_WITH_TESTS "Build unit tests executables" OFF)
|
option(I3IPCpp_WITH_TESTS "Build unit tests executables" OFF)
|
||||||
option(I3IPCpp_BUILD_EXAMPLES "Build example executables" OFF)
|
option(I3IPCpp_BUILD_EXAMPLES "Build example executables" OFF)
|
||||||
|
|
||||||
@@ -60,10 +58,6 @@ target_compile_options(i3ipc++
|
|||||||
PRIVATE -std=c++17 -Wall -Wextra -Wno-unused-parameter
|
PRIVATE -std=c++17 -Wall -Wextra -Wno-unused-parameter
|
||||||
)
|
)
|
||||||
|
|
||||||
target_compile_definitions(i3ipc++
|
|
||||||
PRIVATE I3IPC_BUILD_DATETIME="${I3IPCppBUILD_DATETIME}"
|
|
||||||
)
|
|
||||||
|
|
||||||
if (CMAKE_BUILD_TYPE STREQUAL "DEBUG")
|
if (CMAKE_BUILD_TYPE STREQUAL "DEBUG")
|
||||||
target_compile_options(i3ipc++
|
target_compile_options(i3ipc++
|
||||||
PUBLIC -g3
|
PUBLIC -g3
|
||||||
|
|||||||
@@ -661,7 +661,7 @@ const version_t& get_version() {
|
|||||||
#define I3IPC_VERSION_MINOR 5
|
#define I3IPC_VERSION_MINOR 5
|
||||||
#define I3IPC_VERSION_PATCH 0
|
#define I3IPC_VERSION_PATCH 0
|
||||||
static version_t version = {
|
static version_t version = {
|
||||||
.human_readable = auss_t() << I3IPC_VERSION_MAJOR << '.' << I3IPC_VERSION_MINOR << '.' << I3IPC_VERSION_PATCH << " (built on " << I3IPC_BUILD_DATETIME << ")",
|
.human_readable = auss_t() << I3IPC_VERSION_MAJOR << '.' << I3IPC_VERSION_MINOR << '.' << I3IPC_VERSION_PATCH,
|
||||||
.loaded_config_file_name = std::string(),
|
.loaded_config_file_name = std::string(),
|
||||||
.major = I3IPC_VERSION_MAJOR,
|
.major = I3IPC_VERSION_MAJOR,
|
||||||
.minor = I3IPC_VERSION_MINOR,
|
.minor = I3IPC_VERSION_MINOR,
|
||||||
|
|||||||
Reference in New Issue
Block a user