Skip to content

Commit

Permalink
Removed the compiled build.h header
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno Alano committed Jan 9, 2018
1 parent 7dc759e commit 547c183
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -17,6 +17,7 @@ src/bitcoin-tx
src/test/test_bitcoin
src/test/test_bitcoin_fuzzy
src/qt/test/test_bitcoin-qt
src/build.h

# autoreconf
Makefile.in
Expand Down
6 changes: 5 additions & 1 deletion contrib/cmake/src/CMakeLists.txt
Expand Up @@ -14,6 +14,11 @@ set(CONTRIB_CURRENT_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
string(REGEX REPLACE "/contrib/cmake" "" CMAKE_CURRENT_SOURCE_DIR
${CMAKE_CURRENT_SOURCE_DIR})

# Compile the `build.h` Header
string(TIMESTAMP BUILD_DATETIME UTC)
configure_file(build.h.in build.h)
include_directories(${CMAKE_CURRENT_BINARY_DIR})

# Setup Sources
set(DIR_SOURCES
${CMAKE_CURRENT_SOURCE_DIR}/txdb.cpp
Expand Down Expand Up @@ -121,7 +126,6 @@ set(DIR_SOURCES
${CMAKE_CURRENT_SOURCE_DIR}/verifydb.cpp )

set(DIR_HEADERS
${CMAKE_CURRENT_SOURCE_DIR}/build.h
${CMAKE_CURRENT_SOURCE_DIR}/txdb.h
${CMAKE_CURRENT_SOURCE_DIR}/key.h
${CMAKE_CURRENT_SOURCE_DIR}/addrman.h
Expand Down
2 changes: 2 additions & 0 deletions contrib/cmake/src/build.h.in
@@ -0,0 +1,2 @@
#define BUILD_SUFFIX "@GIT_SHA1@"
#define BUILD_DATE "@BUILD_DATETIME@"
2 changes: 0 additions & 2 deletions src/build.h

This file was deleted.

0 comments on commit 547c183

Please sign in to comment.