Skip to content

Commit

Permalink
cmake: hardcode git info for faster incremental Debug builds (#2473)
Browse files Browse the repository at this point in the history
  • Loading branch information
battlmonstr authored Nov 4, 2024
1 parent 1f492aa commit 90e29ac
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
14 changes: 13 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,19 @@ set(PROJECT_VERSION_MAJOR ${CMAKE_MATCH_1})
set(PROJECT_VERSION_MINOR ${CMAKE_MATCH_2})
set(PROJECT_VERSION_PATCH ${CMAKE_MATCH_3})

cable_add_buildinfo_library(PROJECT_NAME ${PROJECT_NAME})
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
set(CABLE_GIT_DESCRIBE "c0deadded1111111111111111111111111111111")
set(CABLE_GIT_BRANCH "dev")
endif()

cable_add_buildinfo_library(
PROJECT_NAME
"${PROJECT_NAME}"
GIT_DESCRIBE
"${CABLE_GIT_DESCRIBE}"
GIT_BRANCH
"${CABLE_GIT_BRANCH}"
)

option(SILKWORM_WASM_API "Build WebAssembly API" OFF)
option(SILKWORM_CORE_ONLY "Only build Silkworm Core" OFF)
Expand Down
2 changes: 1 addition & 1 deletion third_party/evmone/evmone

0 comments on commit 90e29ac

Please sign in to comment.