CMake RPATH and stage directories
Created by: teamblubee
I am installing some Trilinos packages into a stage directory but certain projects do not follow the recommendations of setting CMAKE_INSTALL_RPATH
I've set CMAKE_INSTALL_RPATH=/usr/local and build these packages:
'include/Makefile.export.KokkosCore' is referring to /stage/usr/ports/math/trilinos/work/stage
'include/Makefile.export.Ifpack' is referring to /stage/usr/ports/math/trilinos/work/stage
'include/Makefile.export.ROL' is referring to /stage/usr/ports/math/trilinos/work/stage
'include/Makefile.export.ML' is referring to /stage/usr/ports/math/trilinos/work/stage
'include/Makefile.export.Kokkos' is referring to /stage/usr/ports/math/trilinos/work/stage
'include/Makefile.export.TeuchosKokkosComm' is referring to /stage/usr/ports/math/trilinos/work/stage
'include/Makefile.export.MueLu' is referring to /stage/usr/ports/math/trilinos/work/stage
'include/Makefile.export.TrilinosSS' is referring to /stage/usr/ports/math/trilinos/work/stage
'include/Makefile.export.TeuchosKokkosCompat' is referring to /stage/usr/ports/math/trilinos/work/stage
'include/Makefile.export.TeuchosCore' is referring to /stage/usr/ports/math/trilinos/work/stage
'include/Makefile.export.Trilinos' is referring to /stage/usr/ports/math/trilinos/work/stage
'include/Makefile.export.Sacado' is referring to /stage/usr/ports/math/trilinos/work/stage
'include/Makefile.export.Amesos' is referring to /stage/usr/ports/math/trilinos/work/stage
'include/Makefile.export.Zoltan' is referring to /stage/usr/ports/math/trilinos/work/stage
'include/Makefile.export.TeuchosParser' is referring to /stage/usr/ports/math/trilinos/work/stage
'include/Makefile.export.TeuchosParameterList' is referring to /stage/usr/ports/math/trilinos/work/stage
'include/Makefile.export.EpetraExt' is referring to /stage/usr/ports/math/trilinos/work/stage
'include/Makefile.export.Triutils' is referring to /stage/usr/ports/math/trilinos/work/stage
'include/Makefile.export.Xpetra' is referring to /stage/usr/ports/math/trilinos/work/stage
'include/Makefile.export.Teuchos' is referring to /stage/usr/ports/math/trilinos/work/stage
'include/Makefile.export.TeuchosRemainder' is referring to /stage/usr/ports/math/trilinos/work/stage
'include/Makefile.export.TeuchosNumerics' is referring to /stage/usr/ports/math/trilinos/work/stage
'include/Makefile.export.Epetra' is referring to /stage/usr/ports/math/trilinos/work/stage
'include/Makefile.export.TeuchosComm' is referring to /stage/usr/ports/math/trilinos/work/stage
'include/Makefile.export.AztecOO' is referring to /stage/usr/ports/math/trilinos/work/stage
'lib/cmake/ML/MLConfig.cmake' is referring to /stage/usr/ports/math/trilinos/work/stage
'lib/cmake/Epetra/EpetraConfig.cmake' is referring to /stage/usr/ports/math/trilinos/work/stage
'lib/cmake/MueLu/MueLuConfig.cmake' is referring to /stage/usr/ports/math/trilinos/work/stage
'lib/cmake/TeuchosComm/TeuchosCommConfig.cmake' is referring to /stage/usr/ports/math/trilinos/work/stage
'lib/cmake/ROL/ROLConfig.cmake' is referring to /stage/usr/ports/math/trilinos/work/stage
'lib/cmake/Teuchos/TeuchosConfig.cmake' is referring to /stage/usr/ports/math/trilinos/work/stage
'lib/cmake/TeuchosNumerics/TeuchosNumericsConfig.cmake' is referring to /stage/usr/ports/math/trilinos/work/stage
'lib/cmake/TeuchosRemainder/TeuchosRemainderConfig.cmake' is referring to /stage/usr/ports/math/trilinos/work/stage
'lib/cmake/Amesos/AmesosConfig.cmake' is referring to /stage/usr/ports/math/trilinos/work/stage
'lib/cmake/TeuchosParameterList/TeuchosParameterListConfig.cmake' is referring to /stage/usr/ports/math/trilinos/work/stage
'lib/cmake/AztecOO/AztecOOConfig.cmake' is referring to /stage/usr/ports/math/trilinos/work/stage
'lib/cmake/Ifpack/IfpackConfig.cmake' is referring to /stage/usr/ports/math/trilinos/work/stage
'lib/cmake/EpetraExt/EpetraExtConfig.cmake' is referring to /stage/usr/ports/math/trilinos/work/stage
'lib/cmake/TeuchosCore/TeuchosCoreConfig.cmake' is referring to /stage/usr/ports/math/trilinos/work/stage
'lib/cmake/Sacado/SacadoConfig.cmake' is referring to /stage/usr/ports/math/trilinos/work/stage
'lib/cmake/TeuchosParser/TeuchosParserConfig.cmake' is referring to /stage/usr/ports/math/trilinos/work/stage
'lib/cmake/Trilinos/TrilinosConfig.cmake' is referring to /stage/usr/ports/math/trilinos/work/stage
'lib/cmake/TrilinosSS/TrilinosSSConfig.cmake' is referring to /stage/usr/ports/math/trilinos/work/stage
'lib/cmake/KokkosCore/KokkosCoreConfig.cmake' is referring to /stage/usr/ports/math/trilinos/work/stage
'lib/cmake/TeuchosKokkosComm/TeuchosKokkosCommConfig.cmake' is referring to /stage/usr/ports/math/trilinos/work/stage
'lib/cmake/TeuchosKokkosCompat/TeuchosKokkosCompatConfig.cmake' is referring to /stage/usr/ports/math/trilinos/work/stage
'lib/cmake/Zoltan/ZoltanConfig.cmake' is referring to /stage/usr/ports/math/trilinos/work/stage
'lib/cmake/Xpetra/XpetraConfig.cmake' is referring to /stage/usr/ports/math/trilinos/work/stage
'lib/cmake/Kokkos/KokkosConfig.cmake' is referring to /stage/usr/ports/math/trilinos/work/stage
'lib/cmake/Kokkos/kokkos_generated_settings.cmake' is referring to /stage/usr/ports/math/trilinos/work/stage
'lib/cmake/Triutils/TriutilsConfig.cmake' is referring to /stage/usr/ports/math/trilinos/work/stage
As you can see from the output the above, those cmake files are still referencing the staging directory instead of the value set by CMAKE_INSTALL_PREFIX;
Please note before setting that value a lot more projects were referencing the stage directory so it seems that maybe only some projects are affected.
I am building this to interface with dealii