Closed rhoneyager-tomorrow closed 4 months ago
@rhoneyager-tomorrow just tested and looks like it works without any issues.
Still working on it! It's in draft and visible so that Rick Grubin can also take a look and finish any leftover parts.
Open for review.
You have to consider three cases for how CMake can be built and linked with dependent projects.
crtm-config.cmake
and crtm-targets*.cmake
files are written, and find_package(crtm)
will locate crtm if you give it a hint (by setting crtm_DIR
to the crtm build location).make install
. Normally, this defaults to /usr/local
, but this install path may be customized by setting CMAKE_PREFIX_PATH
accordingly. As with case 2, find_package(crtm)
will locate crtm if you give it a hint (by setting crtm_DIR
to the crtm install location). This is also how Spack installs packages. It sets the correct CMake variables and runs make install
, and everything just works.I've tested all three cases, and can successfully link crtm to ufo in each case.
Description
The ecbuild to cmake update broke the ability to have CMake "install" CRTM. This fixes it. The patch is based on the v3.1.0-skylabv8 tag, which is why there are conflicts against
develop
.Expected behavior:
Issue(s) addressed
None tracked here.
Dependencies
None.
Impact
Spack can build CRTM v3 again.
Checklist
make install
, and then passed that installation directory for use in a bundle build of ufo. Ex:cmake -Dcrtm_DIR=/some/installation/directory/for/crtm
.cmake -Dcrtm_DIR=/some/build/directory/for/crtm
.