drwells / fiddle

4 stars 3 forks source link

Issue building fiddle in debug mode with deal.II built in release mode #232

Closed marshallrdavey closed 5 months ago

marshallrdavey commented 5 months ago

I was trying to build fiddle in Debug mode while my deal.II is in Release mode. I have identified in the diff below that in this case CMake is not adding my deal.II build to the RPATH (the second RPATH is from my Release build of fiddle), which I suspect is the root of the issue. @drwells I was curious if you want people to be able to mix build versions, or do you want it to throw an error/warning so users can't build fiddle like this.

<          RPATH "/not_backed_up/heart/programs/fiddle/install_debug/lib:/not_backed_up/heart/programs/ibamr/no_libmesh/lib:/not_backed_up/heart/programs/petsc/3.17.5/20240306/lib:/not_backed_up/heart/programs/hdf5/20240306/lib")
---
>          RPATH "/not_backed_up/heart/programs/fiddle/install/lib:/not_backed_up/heart/programs/ibamr/no_libmesh/lib:/not_backed_up/heart/programs/dealii/trilinos/lib:/not_backed_up/heart/programs/petsc/3.17.5/20240306/lib:/not_backed_up/heart/programs/trilinos/install/lib:/not_backed_up/heart/programs/hdf5/20240306/lib")