From e0b47695c02fe2b3aaebf9719db96c5f5dc3c616 Mon Sep 17 00:00:00 2001 From: moneroexamples Date: Thu, 5 Sep 2019 15:02:23 +0800 Subject: [PATCH] update cmake to check for other monero path --- CMakeLists.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2833d93..16c85ce 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,6 +28,18 @@ if (NOT MONERO_BUILD_DIR) # set location of monero build tree set(MONERO_BUILD_DIR ${MONERO_SOURCE_DIR}/build/release/ 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() set(MY_CMAKE_DIR "${CMAKE_CURRENT_LIST_DIR}/cmake"