-
Notifications
You must be signed in to change notification settings - Fork 35
fix for the apply of the HWLOC security patch #849
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
Conversation
dff3446
to
eec25d5
Compare
eec25d5
to
05f3b94
Compare
@@ -217,6 +202,22 @@ else() | |||
message(STATUS " LIBHWLOC_LIBRARY_DIRS = ${LIBHWLOC_LIBRARY_DIRS}") | |||
endif() | |||
|
|||
if(hwloc_targ_SOURCE_DIR) | |||
# apply security patch for HWLOC | |||
execute_process( |
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.
Look at the options named ECHO_OUTPUT_VARIABLE, ECHO_ERROR_VARIABLE
.
Generally it's not blocking, but probably you can remove all if blocks below.
Source: https://cmake.org/cmake/help/latest/command/execute_process.html
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.
ok but this is enabled in cmake >= 3.18 and I do not want to bump min required ver right 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.
LGTM
05f3b94
to
6c828f6
Compare
fix for the apply of the HWLOC security patch
This is a fix for a scenario where the user runs the cmake configuration with the UMF_LINK_HWLOC_STATICALLY setting multiple times for the same build directory. On the first run, cmake downloads the HWLOC sources and successfully applies the required security patch, but the patching fails the second time (the patch has already been applied). This PR fixes this error.