@@ -51,9 +51,9 @@ message(STATUS "CMake version ${CMAKE_VERSION}")
51
51
set (CMAKE_OSX_DEPLOYMENT_TARGET 10.12 CACHE STRING "macOS deployment target (Apple clang only)" )
52
52
53
53
project (beldex
54
- VERSION 4.1 .0
54
+ VERSION 5.0 .0
55
55
LANGUAGES CXX C)
56
- set (BELDEX_RELEASE_CODENAME "Bucephalus " )
56
+ set (BELDEX_RELEASE_CODENAME "Bern " )
57
57
58
58
# String value to append to the full version string; this is intended to easily identify whether a
59
59
# binary was build from the release or development branches. This should be permanently set to an
@@ -283,8 +283,7 @@ if(NOT MANUAL_SUBMODULES)
283
283
endforeach ()
284
284
endfunction ()
285
285
286
- message (STATUS "Checking submodules" )
287
- check_submodule(external/miniupnp)
286
+ message (STATUS "Checking submodules" )
288
287
check_submodule(external/rapidjson)
289
288
check_submodule(external/trezor-common)
290
289
check_submodule(external/randomx)
@@ -322,7 +321,6 @@ else()
322
321
endif ()
323
322
message (STATUS "Building for a ${ARCH_WIDTH} -bit system" )
324
323
325
- # Check if we're on FreeBSD so we can exclude the local miniupnpc (it should be installed from ports instead)
326
324
# CMAKE_SYSTEM_NAME checks are commonly known, but specifically taken from libsdl's CMakeLists
327
325
if (CMAKE_SYSTEM_NAME MATCHES "kFreeBSD.*|FreeBSD" )
328
326
set (FREEBSD TRUE )
@@ -357,6 +355,7 @@ if(APPLE)
357
355
endif ()
358
356
359
357
option (BUILD_STATIC_DEPS "Download, build and statically link against core dependencies" OFF )
358
+ option (HTTPS_AND_SSL "Use https and ssl while statically build" ON )
360
359
if (BUILD_STATIC_DEPS)
361
360
include (StaticBuild)
362
361
endif ()
@@ -429,24 +428,6 @@ find_package(Threads)
429
428
430
429
if (APPLE AND NOT IOS)
431
430
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=x86-64 -fvisibility=default" )
432
- if (NOT OpenSSL_DIR)
433
- EXECUTE_PROCESS (COMMAND brew --prefix openssl
434
- OUTPUT_VARIABLE OPENSSL_ROOT_DIR
435
- OUTPUT_STRIP_TRAILING_WHITESPACE)
436
- message (STATUS "Using OpenSSL found at ${OPENSSL_ROOT_DIR} " )
437
- endif ()
438
- endif ()
439
-
440
- if (BUILD_STATIC_DEPS)
441
- # SSL::* targets already set up
442
- else ()
443
- find_package (OpenSSL REQUIRED)
444
- endif ()
445
- message (STATUS "Using OpenSSL include dir at ${OPENSSL_INCLUDE_DIR} " )
446
-
447
- if (MINGW)
448
- # OpenSSL doesn't seem to properly set up its dependencies on Windows, leading to linking errors
449
- target_link_libraries (OpenSSL::Crypto INTERFACE ws2_32)
450
431
endif ()
451
432
452
433
add_definition_if_library_exists(c memset_s "string.h" HAVE_MEMSET_S)
@@ -456,7 +437,6 @@ add_definition_if_function_found(strptime HAVE_STRPTIME)
456
437
# Generate header for embedded translations
457
438
add_subdirectory (translations)
458
439
459
- add_library (miniupnpc INTERFACE )
460
440
add_library (systemd INTERFACE ) # Will do nothing unless we find and enable systemd support
461
441
462
442
if (NOT TARGET sodium)
@@ -483,12 +463,6 @@ if(NOT TARGET sodium)
483
463
export (TARGETS sodium NAMESPACE sodium:: FILE sodium-exports.cmake)
484
464
endif ()
485
465
486
- if (NOT BUILD_STATIC_DEPS)
487
- find_package (PkgConfig REQUIRED)
488
- pkg_check_modules(UNBOUND libunbound REQUIRED IMPORTED_TARGET)
489
- add_library (libunbound INTERFACE )
490
- target_link_libraries (libunbound INTERFACE PkgConfig::UNBOUND)
491
- endif ()
492
466
493
467
option (WITH_SYSTEMD "Attempts to link against and enable systemd daemon notification support" ON )
494
468
if (WITH_SYSTEMD AND NOT BUILD_STATIC_DEPS)
@@ -560,7 +534,7 @@ else()
560
534
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${ARCH_FLAG} " )
561
535
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${ARCH_FLAG} " )
562
536
563
- set (WARNINGS "-Wall -Wextra -Wpointer-arith -Wvla - Wwrite-strings -Wno-error=extra -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-unused-variable -Wno-error=unused-variable -Wno-error=uninitialized" )
537
+ set (WARNINGS "-Wall -Wextra -Wpointer-arith -Wwrite-strings -Wno-error=extra -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-unused-variable -Wno-error=unused-variable -Wno-error=uninitialized" )
564
538
565
539
option (WARNINGS_AS_ERRORS "Enable warning as errors" OFF )
566
540
if (NOT MINGW AND WARNINGS_AS_ERRORS)
@@ -790,20 +764,14 @@ set(Boost_USE_MULTITHREADED TRUE) # Needed for macOS, at least, and won't hurt e
790
764
if (BUILD_STATIC_DEPS)
791
765
# StaticBuild.cmake sets Boost targets up for us
792
766
else ()
793
- find_package (Boost 1.58 QUIET REQUIRED COMPONENTS system thread serialization program_options)
767
+ find_package (Boost 1.62 QUIET REQUIRED COMPONENTS system thread serialization program_options)
794
768
endif ()
795
769
796
770
set (CMAKE_FIND_LIBRARY_SUFFIXES ${OLD_LIB_SUFFIXES} )
797
771
if (NOT Boost_FOUND)
798
772
message (FATAL_ERROR "Could not find Boost libraries, please make sure you have installed Boost or libboost-all-dev (>=1.58) or the equivalent" )
799
773
elseif (Boost_FOUND)
800
774
message (STATUS "Found Boost Version: ${Boost_VERSION} " )
801
- if (OPENSSL_VERSION VERSION_GREATER_EQUAL 1.1 AND (
802
- Boost_VERSION VERSION_LESS 1.62.0 OR (Boost_VERSION VERSION_GREATER 100000 AND Boost_VERSION VERSION_LESS 106200)))
803
- message (FATAL_ERROR "Boost ${Boost_VERSION} (older than 1.62) is too old to link with OpenSSL ${OPENSSL_VERSION} (1.1 or newer) found at ${OPENSSL_INCLUDE_DIR} and ${OPENSSL_LIBRARIES} . "
804
- "Update Boost or install OpenSSL 1.0 and set path to it when running cmake: "
805
- "cmake -DOPENSSL_ROOT_DIR='/usr/include/openssl-1.0'" )
806
- endif ()
807
775
endif ()
808
776
809
777
# Interface target for random extra system libraries that we need to link everything against
0 commit comments