Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
FinnTew committed Jan 20, 2025
1 parent 0036e68 commit 9c7cd3b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
10 changes: 3 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ EXECUTE_PROCESS(
MESSAGE(STATUS "GIT_COMMIT_HASH: ${GIT_COMMIT_HASH}")
MESSAGE(STATUS "GIT_COMMIT_DATE: ${BUILD_DATE}")

ADD_DEFINITIONS(-DKIWI_GIT_COMMIT_ID="${GIT_COMMIT_HASH}")
ADD_DEFINITIONS(-DKIWI_BUILD_DATE="${BUILD_DATE}")

IF(CMAKE_BUILD_TYPE STREQUAL "Release")
MESSAGE("Building in Release mode")
ELSE()
Expand Down Expand Up @@ -273,10 +276,3 @@ ADD_CUSTOM_TARGET(cpplint echo '${LINT_FILES}' | xargs -n12 -P8
--linelength=120
--filter=-legal/copyright,-build/header_guard,-runtime/references
)

TARGET_COMPILE_DEFINITIONS(kiwi PRIVATE
KIWI_VERSION="${K_VERSION}"
KIWI_BUILD_TYPE="${BUILD_TYPE}"
KIWI_GIT_COMMIT_ID="${GIT_COMMIT_ID}"
KIWI_BUILD_DATE="${BUILD_TIME}"
)
2 changes: 1 addition & 1 deletion src/kiwi.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include "net/event_server.h"
#include "options.h"

// #define KIWI_VERSION "4.0.0"
#define KIWI_VERSION "4.0.0"

#ifdef BUILD_DEBUG
# define KIWI_BUILD_TYPE "DEBUG"
Expand Down

0 comments on commit 9c7cd3b

Please sign in to comment.