Welcome @Mike_Tree! We are a bit slow to respond these days due to Christmas, but let’s see if I can hellp here.
I see this in your install.log
:
-- Up-to-date: /beegfs/users/mtree/precice/precice-2.1.1/lib64/cmake/precice/preciceTargets.cmake
-- Installing: /beegfs/users/mtree/precice/precice-2.1.1/lib64/cmake/precice/preciceTargets-debug.cmake
-- Up-to-date: /beegfs/users/mtree/precice/precice-2.1.1/lib64/cmake/precice/preciceConfig.cmake
make test_install
is looking for /beegfs/users/mtree/precice/precice-2.1.1/cmake/preciceTargets.cmake
I also see the following in your build_precice_2_1_1.txt
:
# set install location
PRECICE_PREFIX=~/precice/precice-2.1.1 # set this to your selected prefix
export LD_LIBRARY_PATH=$PRECICE_PREFIX/lib:$LD_LIBRARY_PATH
export CPATH=$PRECICE_PREFIX/include:$CPATH
# Enable detection with pkg-config and CMake
export PKG_CONFIG_PATH=$PRECICE_PREFIX/lib/pkgconfig:$PKG_CONFIG_PATH
export CMAKE_PREFIX_PATH=$PRECICE_PREFIX:$CMAKE_PREFIX_PATH
# make the build directory and navigate to it
mkdir -p ~/precice/precice-2.1.1/build
cd ~/precice/precice-2.1.1/build
# configure build
CC=mpicc CXX=mpicxx cmake ~/precice/precice-2.1.1 \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_INSTALL_PREFIX=~/precice/precice-2.1.1 \
-DMPI_CXX_COMPILER=mpicxx \
-DPRECICE_PETScMapping=OFF \
-DPRECICE_PythonActions=OFF \
-DPRECICE_InstallTest=ON \
-DPRECICE_ALWAYS_VALIDATE_LIBS=ON
I understand that you are using the same installation prefix as the path you use for the repository. In there, we already have a directory cmake/
, and this mix confuses CMake.
I would recommend the following:
- Modify your script to use a different prefix (could also be a separate directory inside
~/precice/precice-2.1.1
, but simply something separate from the root directory of the project)
- Completely remove the directory where you cloned preCICE
- Run your script again.
Good luck and let us know if this worked!