Restrict install step to OpenSSL subbuild
Instead of running install in the top-level build directory (CMAKE_BINARY_DIR), which would install all other modules, too.
This is a problem in builds that have modules that do not need to be installed (and just provide archives for a build).
Is this still relevant? The issue you describe does not seem to be related to the changes in this PR, moreover the build fails with CMake Error: The source directory "/foo/_deps/openssl-subbuild" does not exist when the PR is applied.
Yes, it is! We have two libraries that are built with CMake that require OpenSSL among other libraries. This fix makes it possible to use openssl-cmake in this context. Without it, all other libraries would also try to install their modules.
It's odd that you get an error with this fix 🤔