Skip to content

Commit

Permalink
test + report on cmake location
Browse files Browse the repository at this point in the history
  • Loading branch information
paleolimbot committed Sep 20, 2023
1 parent 7328450 commit 9095a59
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions configure
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@

# https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Using-cmake

# if test -z "$CMAKE"; then CMAKE="`which cmake`"; fi
# if test -z "$CMAKE"; then CMAKE=/Applications/CMake.app/Contents/bin/cmake; fi
# if test -f "$CMAKE"; then echo "no ‘cmake’ command found"; exit 1; fi
if test -z "$CMAKE"; then CMAKE="`which cmake`"; fi
if test -z "$CMAKE"; then CMAKE=/Applications/CMake.app/Contents/bin/cmake; fi
if ${CMAKE} --version ; then
echo "Using CMAKE=$CMAKE"
echo "Using MAKE=$MAKE $MAKEVARS"
else
echo "cmake not found"
fi

: ${R_HOME=`R RHOME`}
if test -z "${R_HOME}"; then
Expand All @@ -20,13 +25,6 @@ LDFLAGS=`"${R_HOME}/bin/R" CMD config LDFLAGS`

CMAKE_PREFIX_PATH="`pwd`/tools/dist/lib/cmake"

if [ -z "$CMAKE" ]; then
CMAKE=cmake
fi

echo "Using CMAKE=$CMAKE"
echo "Using MAKE=$MAKE $MAKEVARS"

build_cmake () {
if [ ! -d "tools/build/$1" ]; then
mkdir -p "tools/build/$1"
Expand Down

0 comments on commit 9095a59

Please sign in to comment.