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
Modify install-cmake.py to build CMake with SSL (#220) #225
Modify install-cmake.py to build CMake with SSL (#220) #225
Conversation
For CMake to be able to submit to a drop site via HTTPS the cmake/ctest executables must have been built with OpenSSL support. This commit modifies the install-cmake.py script to: * Check if CMake is installed on the system * Configure CMake with CMake and OpenSSL support The CMakeLists.txt for configuring CMake with CMake with is smart enough to allow you to still build CMake even if you request OpenSSL and it is not installed. The only requirement is that CMake be configured with CMake instead of autotools. If CMake is not available then install-cmake.py defaults to its previous behavior.
Hi Ross, Summarizing changes here:
You had also mentioned probably not implementing a test for this in the issue #220. If you have an idea about this (I'm not sure how to do it) I can try to implement a test. I'm going to post some follow-on comments with output from my manual testing. |
Below is the output from a successful configure & install of CMake with CMake and OpenSSL libraries installed.
|
For a configure without OpenSSL installed the output is:
So we see that the install procedure still finished without incident. |
So when Open SSL can't be found, the CMake configure of CMake will just exclude it and keep going? Does the produced CMake work correctly? |
Correct.
I did not test the CMake executables, but I assume so. I can do this (although probably won't have a chance till tomorrow). |
I think, as a fail safe, we might consider adding the option |
…ub#220) This allows the user to override and choose how CMake is configured. Whether it is configured with CMake (and OpenSSL support) or with the basic configure script that is also available.
Hi Ross, I've added an option called |
@bkochuna, the updated script looks great. I will give it a try myself and see how it goes. If that all checks out, then I will go ahead and merge the PR branch. Thanks! |
@bkochuna, I have posted a new PR #306 that merged in this branch and makes a few tweaks to make this robust out of the box:
Sorry it took me so long to get this this. I was hoping that Spack would make install-cmake.py obsolute. But if you just clone the Spack GitHub repo and they run |
For CMake to be able to submit to a drop site via HTTPS
the cmake/ctest executables must have been built with OpenSSL
support. This commit modifies the install-cmake.py script to:
The CMakeLists.txt for configuring CMake with CMake with is smart
enough to allow you to still build CMake even if you request OpenSSL
and it is not installed. The only requirement is that CMake be
configured with CMake instead of autotools. If CMake is not available
then install-cmake.py defaults to its previous behavior.