From 74a4f7c940e29408de226e6e5bd6b27e88f67d49 Mon Sep 17 00:00:00 2001 From: Ryan Curtin Date: Mon, 8 Apr 2024 09:26:44 -0400 Subject: [PATCH] Use absolute paths for CMake dependency locations. --- build_mlpack.emulated.sh | 2 +- build_mlpack.i686.sh | 2 +- build_mlpack.musl.sh | 2 +- build_mlpack.osx.sh | 10 +++++----- build_mlpack.sh | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/build_mlpack.emulated.sh b/build_mlpack.emulated.sh index 5c21026..77e0db3 100755 --- a/build_mlpack.emulated.sh +++ b/build_mlpack.emulated.sh @@ -48,6 +48,6 @@ cd build/ cmake \ -DBUILD_PYTHON_BINDINGS=ON \ -DBUILD_CLI_EXECUTABLES=OFF \ - -DSTB_IMAGE_INCLUDE_DIR=../../stb/include/ \ + -DSTB_IMAGE_INCLUDE_DIR="$PWD/../../stb/include/" \ ../ make diff --git a/build_mlpack.i686.sh b/build_mlpack.i686.sh index 364216e..59318e2 100755 --- a/build_mlpack.i686.sh +++ b/build_mlpack.i686.sh @@ -49,6 +49,6 @@ cd build/ cmake \ -DBUILD_PYTHON_BINDINGS=ON \ -DBUILD_CLI_EXECUTABLES=OFF \ - -DSTB_IMAGE_INCLUDE_DIR=../../stb/include/ \ + -DSTB_IMAGE_INCLUDE_DIR="$PWD/../../stb/include/" \ ../ make diff --git a/build_mlpack.musl.sh b/build_mlpack.musl.sh index c136d91..c3f9bbd 100755 --- a/build_mlpack.musl.sh +++ b/build_mlpack.musl.sh @@ -50,6 +50,6 @@ cd build/ cmake \ -DBUILD_PYTHON_BINDINGS=ON \ -DBUILD_CLI_EXECUTABLES=OFF \ - -DSTB_IMAGE_INCLUDE_DIR=../../stb/include/ \ + -DSTB_IMAGE_INCLUDE_DIR="$PWD/../../stb/include/" \ ../ make diff --git a/build_mlpack.osx.sh b/build_mlpack.osx.sh index 93957a1..f749d42 100755 --- a/build_mlpack.osx.sh +++ b/build_mlpack.osx.sh @@ -61,11 +61,11 @@ cmake \ -DCMAKE_OSX_ARCHITECTURES="$CIBW_ARCHS_MACOS" \ -DCMAKE_CXX_FLAGS="-D_LIBCPP_DISABLE_AVAILABILITY" \ -DBUILD_CLI_EXECUTABLES=OFF \ - -DARMADILLO_LIBRARY=../../armadillo-11.4.1/libarmadillo.dylib \ - -DARMADILLO_INCLUDE_DIR=../../armadillo-11.4.1/tmp/include/ \ - -DENSMALLEN_INCLUDE_DIR=../../ensmallen-2.19.0/include/ \ - -DSTB_IMAGE_INCLUDE_DIR=../../stb/include/ \ - -DCMAKE_INSTALL_PREFIX=../install \ + -DARMADILLO_LIBRARY="$PWD/../../armadillo-11.4.1/libarmadillo.dylib" \ + -DARMADILLO_INCLUDE_DIR="$PWD/../../armadillo-11.4.1/tmp/include/" \ + -DENSMALLEN_INCLUDE_DIR="$PWD/../../ensmallen-2.19.0/include/" \ + -DSTB_IMAGE_INCLUDE_DIR="$PWD/../../stb/include/" \ + -DCMAKE_INSTALL_PREFIX="$PWD/../install" \ ../ make -j4 diff --git a/build_mlpack.sh b/build_mlpack.sh index e33c29f..669ebf2 100755 --- a/build_mlpack.sh +++ b/build_mlpack.sh @@ -19,6 +19,6 @@ cd build/ cmake \ -DBUILD_PYTHON_BINDINGS=ON \ -DBUILD_CLI_EXECUTABLES=OFF \ - -DSTB_IMAGE_INCLUDE_DIR=../../stb/include/ \ + -DSTB_IMAGE_INCLUDE_DIR="$PWD/../../stb/include/" \ ../ make