Skip to content

Commit

Permalink
path fix for build script
Browse files Browse the repository at this point in the history
  • Loading branch information
Snider committed Mar 26, 2024
1 parent 4bbf424 commit 8b4f166
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion utils/build/testnet_linux_cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ else
pip install conan # Install Conan
fi

curr_path=$(pwd)

# Get the number of available CPU threads
num_threads=$(nproc)

Expand All @@ -47,7 +49,8 @@ echo "--------------------------------------------------"
echo "Building...."

rm -rf build; mkdir -p build/release; cd build/release;
cmake $testnet_def -D STATIC=true -D ARCH=x86-64 -D CMAKE_BUILD_TYPE=Release -DCMAKE_PROJECT_TOP_LEVEL_INCLUDES=contrib/cmake/conan_provider.cmake ../..

cmake $testnet_def -D STATIC=true -D ARCH=x86-64 -D CMAKE_BUILD_TYPE=Release -DCMAKE_PROJECT_TOP_LEVEL_INCLUDES="${curr_path}"/contrib/cmake/conan_provider.cmake ../..
if [ $? -ne 0 ]; then
echo "Failed to run cmake"
exit 1
Expand Down
2 changes: 1 addition & 1 deletion utils/build/testnet_mac_osx_cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ ARCHIVE_NAME_PREFIX=${ARCHIVE_NAME_PREFIX}testnet

rm -rf build; mkdir -p build/release; cd build/release;

cmake $testnet_def -DCMAKE_PROJECT_TOP_LEVEL_INCLUDES=contrib/cmake/conan_provider.cmake -D OPENSSL_ROOT_DIR=$OPENSSL_ROOT_DIR -D CMAKE_OSX_SYSROOT=$CMAKE_OSX_SYSROOT -D CMAKE_BUILD_TYPE=Release -D BOOST_ROOT="$ZANO_BOOST_ROOT" -D BOOST_LIBRARYDIR="$ZANO_BOOST_LIBS_PATH" ../..
cmake $testnet_def -DCMAKE_PROJECT_TOP_LEVEL_INCLUDES="${curr_path}"/contrib/cmake/conan_provider.cmake -D OPENSSL_ROOT_DIR=$OPENSSL_ROOT_DIR -D CMAKE_OSX_SYSROOT=$CMAKE_OSX_SYSROOT -D CMAKE_BUILD_TYPE=Release -D BOOST_ROOT="$ZANO_BOOST_ROOT" -D BOOST_LIBRARYDIR="$ZANO_BOOST_LIBS_PATH" ../..
if [ $? -ne 0 ]; then
echo "Failed to cmake"
exit 1
Expand Down

0 comments on commit 8b4f166

Please sign in to comment.