Skip to content

Commit

Permalink
fix fedora (#221)
Browse files Browse the repository at this point in the history
* use CMAKE_INSTALL_LIBDIR & fix cmake call

* fix ExternalLibsExtractor.sh when arma_libs-NOTFOUND
  • Loading branch information
yannrichet-irsn committed Oct 27, 2022
1 parent 051ca8f commit 432f049
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis-ci/linux-macos/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ fi
# Default configuration when used out of travis-ci
MODE=${MODE:-Debug}
EXTRA_CMAKE_OPTIONS=${EXTRA_CMAKE_OPTIONS:-}
EXTRA_CMAKE_OPTIONS="${EXTRA_CMAKE_OPTIONS} -DCMAKE_INSTALL_LIBDIR=lib" # avoid using "lib64" for some distros
BUILD_TEST=${BUILD_TEST:-true}

export ENABLE_OCTAVE_BINDING=${ENABLE_OCTAVE_BINDING:-auto}
Expand Down
4 changes: 3 additions & 1 deletion bindings/R/tools/ExternalLibsExtractor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,7 @@ BASEDIR=$(cd "$BASEDIR" && pwd -P)

TMPDIR=$(mktemp -d)
ARMA_LIBS=$(cmake -DLIBKRIGING_PATH="${LIBKRIGING_PATH}" -B "${TMPDIR}" "${BASEDIR}" | sed -n -r -e 's/^-- EXTERNAL_LIBS=(.*)$/\1/p')
# avoid *-NOTFOUND to be displayed:
ARMA_LIBS=$(echo "$ARMA_LIBS" | sed -e 's/[^ ]*-NOTFOUND[^ ]*//g')
echo "${ARMA_LIBS}"
rm -fr "${TMPDIR}"
rm -fr "${TMPDIR}"

0 comments on commit 432f049

Please sign in to comment.