-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
CMake fails to find OpenSSL in 20210927.1 #4195
Comments
Hey, @speedym |
I had the same issue and changing the |
Sorry for lagging on this, on our side "brew install openssl" solved the problem as well. It would be great if it worked out of the box though. |
@speedym |
the fix should be in the next week's release |
New macOS images have been deployed, the issue should be fixed. |
I am also facing an OPENSSL_ROOT_DIR problem in macos-10.15, my build script has:
On my build 22 days ago this output:
Changing this to |
Hi @sanderland! The behavior changed because openssl brew formula now points to the openssl 3.0, but we decided to stick to 1.1 for a while thus |
Description
After the upgrade from 20210919.1 -> 20210927.1 of the macos-10.15 virtual environment, our CI broke because the following line:
find_package(OpenSSL REQUIRED)
fails with:
`CMake Error at /usr/local/Cellar/cmake/3.21.3/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY
OPENSSL_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/local/Cellar/cmake/3.21.3/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
/usr/local/Cellar/cmake/3.21.3/share/cmake/Modules/FindOpenSSL.cmake:574 (find_package_handle_standard_args)
cmake/libs/simple-websocket-server.cmake:41 (find_package)
CMakeLists.txt:360 (include)
-- Configuring incomplete, errors occurred!
See also "/Users/runner/work/xxxxx/xxxxx/build/macos/CMakeFiles/CMakeOutput.log".
Error: Process completed with exit code 1.`
Virtual environments affected
Image version and build link
20210927.1
Is it regression?
20210919.1
Expected behavior
CMake should find OpenSSL
Actual behavior
CMake fails to find OpenSSL and exits with error code.
Repro steps
Make a trivial CMake project with:
find_package(OpenSSL REQUIRED)
Start CMake on a virtual instance, observe that it fails.
The text was updated successfully, but these errors were encountered: