mirror of
https://github.com/nwchemgit/nwchem.git
synced 2026-07-27 05:35:37 -04:00
compile cmake master when arch!=(x86||aarch64)
This commit is contained in:
parent
24062d98a3
commit
c140667c4e
1 changed files with 11 additions and 7 deletions
|
|
@ -8,15 +8,19 @@ get_cmake_release(){
|
|||
echo "Parameter #1 is $1"
|
||||
echo cmake_instdir is $cmake_instdir
|
||||
rm -f cmake-${CMAKE_VER}.tar.gz
|
||||
if [[ ${UNAME_S} == "Linux" ]] && [[ ${CPU} == "x86_64" || ${CPU} == "aarch64" || ${CPU} == "i686" ]] ; then
|
||||
cd $cmake_instdir
|
||||
if [[ ${CPU} == "i686" ]] ; then
|
||||
CMAKE_CPU="x86_64"
|
||||
if [[ ${UNAME_S} == "Linux" ]]; then
|
||||
if [[ ${CPU} == "x86_64" || ${CPU} == "aarch64" || ${CPU} == "i686" ]] ; then
|
||||
cd $cmake_instdir
|
||||
if [[ ${CPU} == "i686" ]] ; then
|
||||
CMAKE_CPU="x86_64"
|
||||
else
|
||||
CMAKE_CPU=${CPU}
|
||||
fi
|
||||
CMAKE=`pwd`/cmake-${CMAKE_VER}-linux-${CMAKE_CPU}/bin/cmake
|
||||
CMAKE_URL=https://github.com/Kitware/CMake/releases/download/v${CMAKE_VER}/cmake-${CMAKE_VER}-linux-${CMAKE_CPU}.tar.gz
|
||||
else
|
||||
CMAKE_CPU=${CPU}
|
||||
get_cmake_master
|
||||
fi
|
||||
CMAKE=`pwd`/cmake-${CMAKE_VER}-linux-${CMAKE_CPU}/bin/cmake
|
||||
CMAKE_URL=https://github.com/Kitware/CMake/releases/download/v${CMAKE_VER}/cmake-${CMAKE_VER}-linux-${CMAKE_CPU}.tar.gz
|
||||
elif [[ ${UNAME_S} == "Darwin" ]] ; then
|
||||
cd $cmake_instdir
|
||||
CMAKE=`pwd`/cmake-${CMAKE_VER}-macos-universal/CMake.app/Contents/bin/cmake
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue