Skip to content

Fix so spack can find mpiadvance#37

Closed
JStewart28 wants to merge 4 commits into
mpi-advance:masterfrom
JStewart28:spack-package-pull-upstream
Closed

Fix so spack can find mpiadvance#37
JStewart28 wants to merge 4 commits into
mpi-advance:masterfrom
JStewart28:spack-package-pull-upstream

Conversation

@JStewart28
Copy link
Copy Markdown
Contributor

Added lines at the end of CMakeLists.txt. The code works, but I am open to changes if there is a more elegant way to incorporate it into the existing CMake.

@bienz2
Copy link
Copy Markdown
Collaborator

bienz2 commented Aug 5, 2025

I think this is fine as is. I added a comment so we remember this is needed for spack.

Copy link
Copy Markdown
Contributor

@TheMasterDirk TheMasterDirk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just wanted to leave some comments on this because Andrew and I are working on making the CMake code organized/consistent between all of the MPI Advance libraries. In the future, we will also likely be renaming this cmake "target" to locality_aware (and thus the various install directories will also need to change to <>/locality_aware), but that big of a change doesn't have to happen in this PR.

Comment thread CMakeLists.txt
configure_package_config_file(
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/mpiadvanceConfig.cmake"
"${CMAKE_CURRENT_BINARY_DIR}/mpiadvanceConfig.cmake"
INSTALL_DESTINATION lib/cmake/mpiadvance)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you mind making this install to share/mpiadvance?

Comment thread CMakeLists.txt

install(FILES
"${CMAKE_CURRENT_BINARY_DIR}/mpiadvanceConfig.cmake"
DESTINATION lib/cmake/mpiadvance)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment here as the configure_package_config_file

Comment thread CMakeLists.txt

# Export the targets into a CMake package
install(EXPORT mpiadvanceTargets
NAMESPACE mpiadvance::
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we do MPIAdvance:: as the namespace?

@TheMasterDirk
Copy link
Copy Markdown
Contributor

Superseded by #41.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants