geodynamics / aspect

A parallel, extensible finite element code to simulate convection in both 2D and 3D models.
https://aspect.geodynamics.org/
Other
217 stars 232 forks source link

Build aspect.debug and/or aspect.release, then link to it. #5836

Closed bangerth closed 2 weeks ago

bangerth commented 1 month ago

This continues my quest to unclutter the cmake scripts. In particular, I'm getting rid of the TARGETS and TARGET variables, which are particularly cumbersome because plenty of cmake commands have TARGET keywords (e.g., set_property(TARGET ${TARGET_EXE_DEBUG} PROPERTY OUTPUT_NAME aspect.debug)).

The end result is that we build executables aspect.debug and/or aspect.release (depending on CMAKE_BUILD_TYPE) and in the end create a symlink from one or the other to aspect.

bangerth commented 1 month ago

Oh dear, it's cmake/AspectConfig.cmake.in again...

tjhei commented 1 month ago

not quite. :smile:

bangerth commented 4 weeks ago

It seems to work in its last iteration.

tjhei commented 4 weeks ago

I am not convinced that installation and plugins still work the same way. Give us some time to test this branch locally.

bangerth commented 3 weeks ago

OK. Feedback welcome!

gassmoeller commented 3 weeks ago

I have tried this a bit locally, here are some observations:

bangerth commented 2 weeks ago

OK, I think I've got this fixed:

This seems to all work for me now. Can you give it another try?