ForestClaw / forestclaw

Quadtree/octree adaptive PDE solver based based on p4est.
http://www.forestclaw.org
BSD 2-Clause "Simplified" License
57 stars 21 forks source link

CMake: allow forestclaw to be used as Git submodule via add_subdirectory #292

Closed scivision closed 7 months ago

scivision commented 7 months ago

There are a number of changes throughout the CMake stack, this is part of them, to allow simpler and more robust use of ForestClaw from higher-level projects as a Git submodule.

This is general corrections/modification after the pattern used in libsc.

To avoid typos (there was one fixed by this PR) we use CMake 3.14+ install() syntax.

We fixed the runpath issue on HPC by using CMake default runpath logic.