Skip to content

Commit

Permalink
Let GROMACS use the newer CMake when available
Browse files Browse the repository at this point in the history
  • Loading branch information
giacomofiorin committed Oct 22, 2024
1 parent 7830857 commit fbcbd0d
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions devel-tools/compile-gromacs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,9 @@ compile_gromacs_target() {
fi

local CMAKE=cmake CTEST=ctest
if hash cmake3 >& /dev/null ; then
CMAKE=cmake3
CTEST=ctest3
fi
if hash ${CMAKE} >& /dev/null ; then
CMAKE_VERSION=$(${CMAKE} --version | head -1 | cut -d' ' -f3)
else
echo "Error: no CMake found." >& 2
if [ -e /opt/cmake/bin/cmake ] ; then
CMAKE=/opt/cmake/bin/cmake
CTEST=/opt/cmake/bin/ctest
fi

local GMX_SRC_DIR=""
Expand Down

0 comments on commit fbcbd0d

Please sign in to comment.