Skip to content

Commit

Permalink
force to pass CMAKE_PREFIX_PATH by parameter to cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
nsec1 committed Aug 28, 2024
1 parent daac875 commit 78c3f37
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ set(BUILD_SAMPLE OFF)
set(BUILD_SCRATCHPAD OFF)
set(BUILD_TESTS OFF)

message(STATUS CMAKE_PREFIX_PATH : ${CMAKE_PREFIX_PATH})

###################
# monero-project
###################
Expand Down
5 changes: 3 additions & 2 deletions bin/build_libmonero_cpp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,15 @@ else
# OS is not windows
test -d build/release || mkdir -p build/release
(cd build/release && \
cmake -D STATIC=ON -D BUILD_64=ON -D CMAKE_BUILD_TYPE=Release -D OPENSSL_ROOT_DIR=$OPENSSL_ROOT_DIR ../.. && \
cmake -D STATIC=ON -D BUILD_64=ON -D CMAKE_BUILD_TYPE=Release\
-D OPENSSL_ROOT_DIR=$OPENSSL_ROOT_DIR -D CMAKE_PREFIX_PATH=$CMAKE_PREFIX_PATH ../.. && \
make -j$HOST_NCORES wallet) || exit 1
fi
cd ../../

# build libmonero-cpp shared library
mkdir -p build &&
cd build &&
cmake $@ .. &&
cmake -D OPENSSL_ROOT_DIR=$OPENSSL_ROOT_DIR -D CMAKE_PREFIX_PATH=$CMAKE_PREFIX_PATH $@ .. &&
cmake --build . &&
make .

0 comments on commit 78c3f37

Please sign in to comment.