Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion generic/cmake/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ thisdir=$(readlink -f $(dirname $BASH_SOURCE))
. $thisdir/env.sh

pushd $build_dir_name
cmake --build . -j $make_parallelism
cmake --build . -- -j $make_parallelism
1 change: 1 addition & 0 deletions packages/cmake/all.sh
1 change: 1 addition & 0 deletions packages/cmake/build.sh
1 change: 1 addition & 0 deletions packages/cmake/configure.sh
23 changes: 23 additions & 0 deletions packages/cmake/download.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash
if [[ "${BASH_SOURCE[0]}" != "${0}" ]]; then
echo "Don't source me"
return 1
fi
set -e

thisdir=$(readlink -f $(dirname $BASH_SOURCE))
. $thisdir/env.sh

if [ -d $source_dir_name ]; then
pushd $source_dir_name
git pull --ff-only origin $version_tag
git submodule update --init --recursive
popd
else
git clone -b $version_tag --recursive https://gitlab.kitware.com/cmake/cmake.git $source_dir_name
fi

# Ensure that if this is the first version installed, others can also
# write the package dir. (Doing this here as superbuild does the
# install during build phase, which is otherwise generic).
mkdir_gw $app_dir/$name
18 changes: 18 additions & 0 deletions packages/cmake/env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
if [ -z "$INSTALLER_CMAKE_ENV_SH" ]; then
INSTALLER_CMAKE_ENV_SH=1
installer_cmake_dir=$(readlink -f $(dirname $BASH_SOURCE))
. $installer_cmake_dir/../../env.sh

visibility=public
name=cmake
version=3.20.1
version_tag=v${version}

source_dir_name=cmake-$version_tag
build_dir_name=build-cmake-$version_tag

installer_init

declare -A cmake_vars
cmake_vars[BUILD_TESTING]=OFF
fi
14 changes: 14 additions & 0 deletions packages/cmake/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash
if [[ "${BASH_SOURCE[0]}" != "${0}" ]]; then
echo "Don't source me"
return 1
fi
set -e
thisdir=$(readlink -f $(dirname $BASH_SOURCE))
. $thisdir/env.sh

pushd $build_dir_name
cmake --build . --target install

# Make the whole prefix tree group writable
chmod -R g+w $prefix
4 changes: 4 additions & 0 deletions packages/cmake/modtemplate.tcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#%Module
module-whatis "CMake-$version"

prepend-path PATH "${prefix}/bin"
1 change: 1 addition & 0 deletions packages/cmake/module.sh
21 changes: 12 additions & 9 deletions packages/paraview/env.sh
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
if [ -z "$INSTALLER_PARAVIEW_ENV_SH" ]; then
if git rev-parse --is-inside-work-tree > /dev/null 2> /dev/null; then
echo "Paraview superbuild will fail if run from inside a git repo."
echo "Please use a build directory outwith a git repo."
exit 1
echo "Paraview superbuild will fail if run from inside a git repo."
echo "Please use a build directory outwith a git repo."
exit 1
fi

INSTALLER_PARAVIEW_ENV_SH=1
installer_paraview_dir=$(readlink -f $(dirname $BASH_SOURCE))
. $installer_paraview_dir/../../env.sh

visibility=public
visibility=private
name=paraview
version=5.9.0
version_tag=v${version}
numpy_version=1.19.2
version=git
version_tag=master

source_dir_name=paraview-$version_tag
build_dir_name=build-$version_tag
build_dir_name=build-paraview-$version_tag

declare -A cmake_vars

installer_init

cmake_vars[BUILD_TESTING]=OFF
cmake_vars[PARAVIEW_BUILD_SHARED_LIBS]=ON
cmake_vars[PARAVIEW_BUILD_EDITION]=CATALYST_RENDERING
cmake_vars[PARAVIEW_BUILD_EDITION]=CATALYST
cmake_vars[PARAVIEW_ENABLE_MOTIONFX]=OFF # temp fix: https://gitlab.kitware.com/paraview/paraview-superbuild/-/issues/189
cmake_vars[paraview_SOURCE_SELECTION]=$version
cmake_vars[ENABLE_boost]=ON
cmake_vars[USE_SYSTEM_boost]=ON
Expand All @@ -33,6 +33,9 @@ if [ -z "$INSTALLER_PARAVIEW_ENV_SH" ]; then
cmake_vars[ENABLE_protobuf]=ON
cmake_vars[ENABLE_python]=ON
cmake_vars[ENABLE_python3]=ON
cmake_vars[ENABLE_numpy]=ON
cmake_vars[ENABLE_ttk]=ON
cmake_vars[ENABLE_zfp]=ON
cmake_vars[USE_SYSTEM_python3]=ON
cmake_vars[ENABLE_gdal]=ON
cmake_vars[USE_SYSTEM_zlib]=ON
Expand Down
7 changes: 7 additions & 0 deletions platforms/archer2/cmake/config.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This totally wipes module setup
module restore -s PrgEnv-gnu
# Ensure our modules are available
mod_use_idem $pub_mod_dir
mod_use_idem $priv_mod_dir

module load gcc/10.1.0
3 changes: 2 additions & 1 deletion platforms/archer2/paraview/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ module restore -s PrgEnv-gnu
mod_use_idem $pub_mod_dir
mod_use_idem $priv_mod_dir

module load cmake/3.18.4
module load cmake/3.20.1
module load gcc/10.1.0
module load python/3.8.5
module load boost/1.72.0

# To let CMake find boost no bother
export Boost_ROOT=$BOOST_DIR