diff --git a/CMakeLists.txt b/CMakeLists.txt index 11fbf30..cd1d378 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,8 +1,6 @@ cmake_minimum_required(VERSION 3.0 FATAL_ERROR) project(i3ipc++) -string(TIMESTAMP I3IPCppBUILD_DATETIME "%Y-%m-%d %H:%M:%S") - option(I3IPCpp_WITH_TESTS "Build unit tests 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 ) -target_compile_definitions(i3ipc++ - PRIVATE I3IPC_BUILD_DATETIME="${I3IPCppBUILD_DATETIME}" -) - if (CMAKE_BUILD_TYPE STREQUAL "DEBUG") target_compile_options(i3ipc++ PUBLIC -g3 diff --git a/src/ipc.cpp b/src/ipc.cpp index afd0aca..3da4e0c 100644 --- a/src/ipc.cpp +++ b/src/ipc.cpp @@ -661,7 +661,7 @@ const version_t& get_version() { #define I3IPC_VERSION_MINOR 5 #define I3IPC_VERSION_PATCH 0 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(), .major = I3IPC_VERSION_MAJOR, .minor = I3IPC_VERSION_MINOR,