mirror of
https://git.wownero.com/wownero/onion-wownero-blockchain-explorer.git
synced 2024-08-15 00:33:12 +00:00
update cmake to check for other monero path
This commit is contained in:
parent
5e7e90b9f6
commit
e0b47695c0
1 changed files with 12 additions and 0 deletions
|
@ -28,6 +28,18 @@ if (NOT MONERO_BUILD_DIR)
|
||||||
# set location of monero build tree
|
# set location of monero build tree
|
||||||
set(MONERO_BUILD_DIR ${MONERO_SOURCE_DIR}/build/release/
|
set(MONERO_BUILD_DIR ${MONERO_SOURCE_DIR}/build/release/
|
||||||
CACHE PATH "Path to the build directory for Monero")
|
CACHE PATH "Path to the build directory for Monero")
|
||||||
|
|
||||||
|
if (NOT EXISTS ${MONERO_BUILD_DIR})
|
||||||
|
# try different location
|
||||||
|
message(STATUS "Trying different folder for monero libraries")
|
||||||
|
set(MONERO_BUILD_DIR ${MONERO_SOURCE_DIR}/build/Linux/master/release/
|
||||||
|
CACHE PATH "Path to the build directory for Monero" FORCE)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if (NOT EXISTS ${MONERO_BUILD_DIR})
|
||||||
|
message(FATAL_ERROR "Monero libraries not found in: ${MONERO_BUILD_DIR}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(MY_CMAKE_DIR "${CMAKE_CURRENT_LIST_DIR}/cmake"
|
set(MY_CMAKE_DIR "${CMAKE_CURRENT_LIST_DIR}/cmake"
|
||||||
|
|
Loading…
Reference in a new issue