Skip to content

Commit

Permalink
feat: build system improvements (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
fpelliccioni committed Oct 27, 2024
1 parent 7df867d commit d62d7d8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.

cmake_minimum_required(VERSION 3.15)
cmake_minimum_required(VERSION 3.20)

project(node-exe VERSION 0 LANGUAGES CXX C)

Expand Down Expand Up @@ -113,7 +113,7 @@ endif()
# Build
# ------------------------------------------------------------------------------
add_executable(${PROJECT_NAME} src/main.cpp)
set_target_properties(${PROJECT_NAME} PROPERTIES LINKER_LANGUAGE CXX CXX_STANDARD 20 CXX_STANDARD_REQUIRED TRUE)
set_target_properties(${PROJECT_NAME} PROPERTIES LINKER_LANGUAGE CXX CXX_STANDARD 23 CXX_STANDARD_REQUIRED TRUE)

target_compile_definitions(${PROJECT_NAME} PUBLIC -DBCN_STATIC -DBCB_STATIC -DBCD_STATIC -DBCT_STATIC -DBC_STATIC)

Expand Down
1 change: 1 addition & 0 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class KnuthNodeExeConan(KnuthConanFileV2):
url = "https://github.com/k-nuth/kth"
description = "Bitcoin full node executable"
settings = "os", "compiler", "build_type", "arch"
package_type = "application"

options = {
"currency": ['BCH', 'BTC', 'LTC'],
Expand Down
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ KTH_USE_MAIN
static auto const application_name = "kth";

std::string_view version() {
return "Node exe v" KTH_NODE_EXE_VERSION;
return "Node exe v" KTH_NODE_EXE_VERSION ". Build time: " KTH_BUILD_TIME;
}

void do_help(kth::node::parser& metadata, std::ostream& output) {
Expand Down
1 change: 1 addition & 0 deletions src/version.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
#define KTH_NODE_EXE_VERSION_HPP_

#define KTH_NODE_EXE_VERSION "0.0.0-dev.1";
#define KTH_BUILD_TIME "xxxxxxxxxxxx"

#endif /*KTH_NODE_EXE_VERSION_HPP_*/

0 comments on commit d62d7d8

Please sign in to comment.