-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Patch so that "make install" works properly. #140
Patch so that "make install" works properly. #140
Conversation
CMakeLists.txt
Outdated
@@ -70,14 +70,9 @@ install(FILES | |||
# Install the export set for use with the install-tree | |||
install(EXPORT ${PROJECT_NAME}-config | |||
FILE "${PROJECT_NAME}-targets.cmake" | |||
#FILE "${PROJECT_NAME}-config.cmake" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as far as I understand it, the crtm-config.cmake generation is necessary for integration in JEDI/UFO -- that's what it looks for to find CRTM. I may be missing something.
@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.
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:
cmake -D CMAKE_INSTALL_PREFIX=/some/installation/directory path_to_crtm_source make install -- Install configuration: "Release" -- Up-to-date: /some/installation/directory/lib64/libcrtm.a -- Up-to-date: /some/installation/directory/lib64/cmake/crtm/crtm-config.cmake -- Up-to-date: /some/installation/directory/lib64/cmake/crtm/crtm-config-version.cmake -- Up-to-date: /some/installation/directory/lib64/cmake/crtm/crtm-targets.cmake -- Up-to-date: /some/installation/directory/lib64/cmake/crtm/crtm-targets-release.cmake -- Up-to-date: /some/installation/directory/module/crtm/Intel/2021.9.0.20230302 -- Up-to-date: /some/installation/directory/module/crtm/Intel/2021.9.0.20230302/crtm_module.mod ......
Issue(s) addressed
None tracked here.
Dependencies
None.
Impact
Spack can build CRTM v3 again.
Checklist
I have made corresponding changes to the documentation(No doc changes relevant)I have run the unit tests before creating the PR(None applicable)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
.