diff --git a/CMakeLists.txt b/CMakeLists.txt index 34a5dd3..63ff3d0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) @@ -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) diff --git a/conanfile.py b/conanfile.py index 2ae9787..94660d1 100644 --- a/conanfile.py +++ b/conanfile.py @@ -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'], diff --git a/src/main.cpp b/src/main.cpp index 3e83ed3..bf90602 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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) { diff --git a/src/version.hpp b/src/version.hpp index f13a931..059a000 100644 --- a/src/version.hpp +++ b/src/version.hpp @@ -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_*/