-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
[mpi/msmpi] Add cmake wrapper to fix bug getting MPI_${LANG}_ADDITIONAL_INCLUDE_DIRS when calling FindMPI.cmake on Windows #24746
[mpi/msmpi] Add cmake wrapper to fix bug getting MPI_${LANG}_ADDITIONAL_INCLUDE_DIRS when calling FindMPI.cmake on Windows #24746
Conversation
…LUDE_DIRS when calling FindMPI.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.
Use the version scheme "version" instead of "version-string" in port "mpi".
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.
Use the version scheme "version" instead of "version-string" in port "mpi".
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.
Use the version scheme "version" instead of "version-string" in port "mpi".
@Neumann-A @dg0yt @cenit Should be okay now? |
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.
Use the version scheme "version" instead of "version-string" in port "mpi".
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.
Use the version scheme "version" instead of "version-string" in port "mpi".
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.
Use the version scheme "version" instead of "version-string" in port "mpi".
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.
Use the version scheme "version" instead of "version-string" in port "mpi".
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.
Use the version scheme "version" instead of "version-string" in port "mpi".
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.
Use the version scheme "version" instead of "version-string" in port "mpi".
LGTM, thanks everyone! |
When calling
find_package(MPI REQUIRED)
,FindMPI.cmake
provides wrong value ofMPI_${LANG}_ADDITIONAL_INCLUDE_DIRS
.This can be reproduced by installing hdf5:
This is because
FindMPI.cmake
tried to getENV{MSMPI_INC}
value, but it's empty. soget_filename_component
will use the current working directory:https://github.com/Kitware/CMake/blob/943210856ae433708a7e12866e94f6dcaacc3248/Modules/FindMPI.cmake#L936-L940
If
FindMPI.cmake
does not declare to set this environment variable before calling it, it should be a cmake bug.Fix this.