usgs-coupled / iphreeqc

ctest results:
https://my.cdash.org/index.php?project=iphreeqc
7 stars 5 forks source link

cmake(ubuntu): install fails when --prefix is used #3

Open scharlton2 opened 2 years ago

scharlton2 commented 2 years ago
mkdir _cmake
cd _cmake
cmake ..
cmake --build . --parallel
cmake --install . --prefix $HOME/.local

yields

-- Install configuration: "Release"
-- Installing: /home/charlton/.local/lib/cmake/IPhreeqc/IPhreeqcConfig.cmake
-- Installing: /home/charlton/.local/lib/cmake/IPhreeqc/IPhreeqcConfigVersion.cmake
-- Installing: /home/charlton/.local/lib/libIPhreeqc.a
-- Installing: /home/charlton/.local/lib/cmake/IPhreeqc/IPhreeqcTargets.cmake
-- Installing: /home/charlton/.local/lib/cmake/IPhreeqc/IPhreeqcTargets-release.cmake
-- Up-to-date: /home/charlton/.local/include/IPhreeqc.h
-- Up-to-date: /home/charlton/.local/include/IPhreeqc.hpp
-- Up-to-date: /home/charlton/.local/include/IPhreeqcCallbacks.h
-- Up-to-date: /home/charlton/.local/include/Keywords.h
-- Up-to-date: /home/charlton/.local/include/PHRQ_exports.h
-- Up-to-date: /home/charlton/.local/include/PHRQ_io.h
-- Up-to-date: /home/charlton/.local/include/Var.h
-- Up-to-date: /home/charlton/.local/share/doc/IPhreeqc/src/IPhreeqc_interface.F90
-- Up-to-date: /home/charlton/.local/share/doc/IPhreeqc/src/README.Fortran
-- Up-to-date: /home/charlton/.local/share/doc/IPhreeqc/database/Amm.dat
-- Up-to-date: /home/charlton/.local/share/doc/IPhreeqc/database/core10.dat
-- Up-to-date: /home/charlton/.local/share/doc/IPhreeqc/database/ColdChem.dat
-- Up-to-date: /home/charlton/.local/share/doc/IPhreeqc/database/frezchem.dat
-- Up-to-date: /home/charlton/.local/share/doc/IPhreeqc/database/iso.dat
-- Up-to-date: /home/charlton/.local/share/doc/IPhreeqc/database/llnl.dat
-- Up-to-date: /home/charlton/.local/share/doc/IPhreeqc/database/minteq.dat
-- Up-to-date: /home/charlton/.local/share/doc/IPhreeqc/database/minteq.v4.dat
-- Up-to-date: /home/charlton/.local/share/doc/IPhreeqc/database/phreeqc.dat
-- Up-to-date: /home/charlton/.local/share/doc/IPhreeqc/database/pitzer.dat
-- Up-to-date: /home/charlton/.local/share/doc/IPhreeqc/database/sit.dat
-- Up-to-date: /home/charlton/.local/share/doc/IPhreeqc/database/Tipping_Hurley.dat
-- Up-to-date: /home/charlton/.local/share/doc/IPhreeqc/database/wateq4f.dat
-- Up-to-date: /home/charlton/.local/share/doc/IPhreeqc/IPhreeqc.pdf
-- Up-to-date: /home/charlton/.local/share/doc/IPhreeqc/NOTICE
-- Up-to-date: /home/charlton/.local/share/doc/IPhreeqc/Phreeqc_2_1999_manual.pdf
-- Up-to-date: /home/charlton/.local/share/doc/IPhreeqc/Phreeqc_3_2013_manual.pdf
-- Up-to-date: /home/charlton/.local/share/doc/IPhreeqc/README
-- Up-to-date: /home/charlton/.local/share/doc/IPhreeqc/RELEASE
-- Up-to-date: /home/charlton/.local/share/doc/IPhreeqc/html
-- Installing: /home/charlton/.local/share/doc/IPhreeqc/examples/c/advect/CMakeLists.txt
-- Up-to-date: /home/charlton/.local/share/doc/IPhreeqc/examples/c/advect/advect.c
-- Up-to-date: /home/charlton/.local/share/doc/IPhreeqc/examples/c/advect/ic
-- Up-to-date: /home/charlton/.local/share/doc/IPhreeqc/examples/c/advect/phreeqc.dat
-- Up-to-date: /home/charlton/.local/share/doc/IPhreeqc/examples/c/advect/README.txt
-- Up-to-date: /home/charlton/.local/share/doc/IPhreeqc/examples/com/excel/phreeqc.dat
-- Up-to-date: /home/charlton/.local/share/doc/IPhreeqc/examples/com/excel/runphreeqc.xls
-- Up-to-date: /home/charlton/.local/share/doc/IPhreeqc/examples/com/excel/withcallback.xls
-- Up-to-date: /home/charlton/.local/share/doc/IPhreeqc/examples/com/python/Gypsum.py
-- Up-to-date: /home/charlton/.local/share/doc/IPhreeqc/examples/com/python/parallel_advect.py
-- Up-to-date: /home/charlton/.local/share/doc/IPhreeqc/examples/com/python/phreeqc.dat
-- Up-to-date: /home/charlton/.local/share/doc/IPhreeqc/examples/com/python/pitzer.dat
-- Up-to-date: /home/charlton/.local/share/doc/IPhreeqc/examples/com/python/wateq4f.dat
-- Up-to-date: /home/charlton/.local/share/doc/IPhreeqc/examples/com/README.txt
-- Installing: /home/charlton/.local/share/doc/IPhreeqc/examples/cpp/advect/CMakeLists.txt
-- Up-to-date: /home/charlton/.local/share/doc/IPhreeqc/examples/cpp/advect/advect.cpp
-- Up-to-date: /home/charlton/.local/share/doc/IPhreeqc/examples/cpp/advect/ic
-- Up-to-date: /home/charlton/.local/share/doc/IPhreeqc/examples/cpp/advect/phreeqc.dat
-- Up-to-date: /home/charlton/.local/share/doc/IPhreeqc/examples/cpp/advect/README.txt
-- Installing: /home/charlton/.local/share/doc/IPhreeqc/examples/fortran/advect/CMakeLists.txt
-- Up-to-date: /home/charlton/.local/share/doc/IPhreeqc/examples/fortran/advect/advect.F90
-- Up-to-date: /home/charlton/.local/share/doc/IPhreeqc/examples/fortran/advect/ic
-- Up-to-date: /home/charlton/.local/share/doc/IPhreeqc/examples/fortran/advect/phreeqc.dat
-- Up-to-date: /home/charlton/.local/share/doc/IPhreeqc/examples/fortran/advect/README.txt
-- Installing: /home/charlton/.local/share/doc/IPhreeqc/examples/using-cmake/CMakeLists.txt
-- Up-to-date: /home/charlton/.local/share/doc/IPhreeqc/examples/using-cmake/ex2
-- Up-to-date: /home/charlton/.local/share/doc/IPhreeqc/examples/using-cmake/main.cpp
-- Up-to-date: /home/charlton/.local/share/doc/IPhreeqc/examples/using-cmake/phreeqc.dat
-- Up-to-date: /home/charlton/.local/share/doc/IPhreeqc/examples/using-cmake/README.txt
CMake Error: Cannot open file for write: /usr/local/share/doc/IPhreeqc/examples/using-cmake/_build/Testing/Temporary/LastStart.log.tmpbceae
CMake Error: : System Error: No such file or directory
Cannot create log file: LastStart.log
CMake Error at /home/charlton/source/repos/coupled/iphreeqc/_cmake/post-install.cmake:6 (ctest_start):
  ctest_start unknown error.

Cannot instantiate test handler ctest_configure
CMake Error at /home/charlton/source/repos/coupled/iphreeqc/_cmake/post-install.cmake:7 (ctest_configure):
  ctest_configure CMakeLists.txt file does not exist
  [/usr/local/share/doc/IPhreeqc/examples/using-cmake/CMakeLists.txt]
scharlton2 commented 2 years ago

vm: ubuntu-20.04.5-desktop-amd64