Skip to content

Commit

Permalink
skaled-2053 fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
olehnikolaiev committed Dec 31, 2024
1 parent c5ea326 commit e472ada
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
cmake_minimum_required(VERSION 3.10)


option(COVERAGE "Build with code coverage support" OFF)
if (COVERAGE)
message(STATUS "**********************")
Expand All @@ -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 )
Expand Down Expand Up @@ -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}" )
Expand Down

0 comments on commit e472ada

Please sign in to comment.