Compile CMake with static curl and openssl
I would like to be able to build CMake using static curl and openssl libraries. In some cases I can build with static openssl by setting OPENSSL_CRYPTO_LIBRARY to include the zlib path, but have run into trouble with missing "-ldl" flag.
This issue may be related to #18378