From e472ada29fcc27c3db714c5f5656603866b1676d Mon Sep 17 00:00:00 2001 From: Oleh Date: Tue, 31 Dec 2024 13:11:43 +0000 Subject: [PATCH] skaled-2053 fix build --- CMakeLists.txt | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 70aab759..8829e97f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,5 @@ cmake_minimum_required(VERSION 3.10) - option(COVERAGE "Build with code coverage support" OFF) if (COVERAGE) message(STATUS "**********************") @@ -21,12 +20,6 @@ if (NOT DEFINED DEPS_INSTALL_ROOT) endif () message(INFO "---- DEPS_INSTALL_ROOT in consensus is: ${DEPS_INSTALL_ROOT}") -#include("cmake/HunterGate.cmake") -#include("cmake/precompiledheader.cmake") - - -#HunterGate(URL "https://github.com/ruslo/hunter/archive/v0.23.76.tar.gz" SHA1 "c7b60993e841850e2c449afd454f5d5aa4ec04e4") - option( CONSENSUS_PROFILING "Build for profiling" OFF ) if( SKALED_PROFILING ) set( CONSENSUS_PROFILING ON ) @@ -63,16 +56,11 @@ include_directories("${DEPS_INSTALL_ROOT}/include" "${DEPS_INSTALL_ROOT}/include link_directories("${DEPS_INSTALL_ROOT}/lib") set(CMAKE_PREFIX_PATH "${DEPS_INSTALL_ROOT}") -# zeromq - -#find_package(оч CONFIG REQUIRED) - #leveldb +find_package( Snappy CONFIG REQUIRED ) +find_package( Crc32c CONFIG REQUIRED ) find_package(leveldb CONFIG REQUIRED) -#set (CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "-Wreturn-type -Winit-self") - - set(CMAKE_CXX_STANDARD 17) execute_process( COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/gcc_ver_query.sh OUTPUT_VARIABLE GXX_MAJOR_VERSION ) message( STATUS "-------- GXX_MAJOR_VERSION is ${GXX_MAJOR_VERSION}" )