If I spack install with --only dependencies, then build hermes with CMake, I get the warning:
CMake Warning at CMakeLists.txt:193 (add_executable):
Cannot generate a safe runtime search path for target hermes-3 because
there is a cycle in the constraint graph:
dir 0 is [$SPACK_ROOT/linux-ubuntu22.04-skylake/gcc-12.3.0/boutpp-develop-vqaa6xqmlve6g6so6prdkkiowi3ojegi/lib]
dir 2 must precede it due to runtime library [libpvpre.so.1.0.0]
dir 1 is [$SPACK_ROOT/opt/spack/linux-ubuntu22.04-skylake/gcc-12.3.0/petsc-3.22.1-im67yfa6udzu5q7vk5uh3pprqbjl6yza/lib]
dir 2 is [$SPACK_ROOT/var/spack/stage/spack-stage-boutpp-develop-vqaa6xqmlve6g6so6prdkkiowi3ojegi/spack-build-vqaa6xq/lib]
dir 0 must precede it due to runtime library [libbout++.so.5.2.0]
dir 3 is [$SPACK_ROOT/linux-ubuntu22.04-skylake/gcc-12.3.0/mpich-4.2.1-agu6ohjk25mywbdgbq2mepwo5s2lutt5/lib]
...
once for the unit tests and once for the main exec.
As far as I can tell this is harmless, the tests pass and the exec runs as usual.
If I spack install with
--only dependencies, then build hermes with CMake, I get the warning:once for the unit tests and once for the main exec.
As far as I can tell this is harmless, the tests pass and the exec runs as usual.