Skip to content

Commit

Permalink
adapt cmake for global build (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
fpelliccioni committed May 31, 2023
1 parent 034956c commit 8cffba5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ option(DB_READONLY_MODE "Readonly DB mode enabled." OFF)
option(USE_LIBMDBX "Uses libmdbx DB library." OFF)
option(STATISTICS "Collect statistics." OFF)

option(GLOBAL_BUILD "" OFF)


if (WITH_MEMPOOL)
message(STATUS "Knuth: Mempool enabled")
add_definitions(-DKTH_WITH_MEMPOOL)
Expand Down Expand Up @@ -123,7 +126,10 @@ endif()

message(STATUS "Knuth: Cryptocurrency: ${CURRENCY}")

find_package(node REQUIRED)
if (NOT GLOBAL_BUILD)
find_package(node REQUIRED)
endif()


include(CheckCXXCompilerFlag)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/ci_utils/cmake)
Expand Down

0 comments on commit 8cffba5

Please sign in to comment.