diff --git a/CMakeLists.txt b/CMakeLists.txt index 75f521c..dcbf023 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,6 +18,7 @@ set(WITH_SSL ON CACHE BOOL "Build with SSL") set(WITH_SQLITE3 OFF CACHE BOOL "Build with Sqlite3") set(WITH_CURL OFF CACHE BOOL "Build with cURL") set(WITH_BITCOIN_CLIENT ON CACHE BOOL "Build with libbitcoin-client") +set(USE_SIGNATURE ON CACHE BOOL "Using signature in HTTP headers") # ---------------------------------------------------------------------------------------------------------------------- if (INSTALL_AS_ROOT) @@ -76,6 +77,10 @@ if (WITH_CURL) add_compile_options("-DWITH_CURL") endif() +if (USE_SIGNATURE) + add_compile_options("-DCALL_SIGNATURE_FETCH") +endif() + add_subdirectory(${DELPHI_LIB_DIR}) # Find PkgConfig diff --git a/cmake-modules/AutoVersion.cmake b/cmake-modules/AutoVersion.cmake index 7835412..d55deb6 100644 --- a/cmake-modules/AutoVersion.cmake +++ b/cmake-modules/AutoVersion.cmake @@ -1,14 +1,14 @@ find_package(Git) if (GIT_FOUND) - message(STATUS "Found Git") - if (EXISTS .git) + if (EXISTS ../.git) execute_process( COMMAND ${GIT_EXECUTABLE} rev-parse --short HEAD OUTPUT_VARIABLE GIT_REVISION OUTPUT_STRIP_TRAILING_WHITESPACE ) else() + message(STATUS "Git not found!") set(GIT_REVISION "e00000") endif() endif() diff --git a/src/app/Common.cpp b/src/app/Common.cpp index 2e3ca0e..1bd5a80 100644 --- a/src/app/Common.cpp +++ b/src/app/Common.cpp @@ -294,7 +294,11 @@ namespace Apostol { CStringList urlList; if (FindURLInLine(uid.Desc, urlList)) { for (int l = 0; l < urlList.Count(); l++) { +#ifndef _DEBUG ServerList.AddPair(uid.Name, urlList[l]); +#else + ServerList.AddPair(BPS_BM_SERVER_ADDRESS, BPS_SERVER_URL); +#endif } } } else if (name.Find("bitcoin_key") != CString::npos) {