Skip to content

GHA/macos: replace CMake package detection workaround on iOS - #23522

Closed
vszakats wants to merge 3 commits into
curl:masterfrom
vszakats:gha-ios-test
Closed

vszakats wants to merge 3 commits into
curl:masterfrom
vszakats:gha-ios-test

Conversation

@vszakats

@vszakats vszakats commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

Replace manual LibreSSL configuration with the standard
OPENSSL_ROOT_DIR method, by passing CMake the additional settings
necessary to make it work as expected in this cross-build scenario (i.e.
avoid sysroot interfering with the dependency detection.)

Refs:
https://cmake.org/cmake/help/v3.19/variable/CMAKE_FIND_ROOT_PATH.html
https://cmake.org/cmake/help/v3.19/variable/CMAKE_FIND_ROOT_PATH_MODE_LIBRARY.html
https://cmake.org/cmake/help/v3.19/variable/CMAKE_FIND_ROOT_PATH_MODE_INCLUDE.html

Also:

  • confirmed, that without the new settings, it continues to fails as was
    seen in January 2025 with an earlier CMake versions.

Follow-up to 12a6de2 #16043

@vszakats
vszakats marked this pull request as draft October 20, 2026 22:50
@github-actions github-actions Bot added CI Continuous Integration appleOS specific to an Apple operating system labels Oct 20, 2026
@vszakats vszakats changed the title [TEST] GHA/macos: try dropping an iOS cmake workaround GHA/macos: replace CMake package detection workaround on iOS Oct 20, 2026
@vszakats
vszakats marked this pull request as ready for review October 20, 2026 23:10
This reverts commit 4be970a.

It's still a fail:
https://github.com/curl/curl/actions/runs/39513443367/job/118939795574?pr=23522

```
-- Using CMake version 4.4.4
-- curl version=[8.23.1-DEV]
-- The C compiler identification is AppleClang 21.0.0.21000101
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode_26.6.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- CMake platform flags: APPLE UNIX APPLE-CLANG CROSS
-- Cross-compiling: Darwin/arm64 -> iOS/
-- Picky compiler options: -pedantic-errors -Werror=partial-availability -Werror-implicit-function-declaration -Wextra -Wall -Wpedantic -Wbad-function-cast -Wconversion -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wno-long-long -Wno-multichar -Wpointer-arith -Wshadow -Wsign-compare -Wundef -Wunused -Wwrite-strings -Waddress -Wattributes -Wcast-align -Wcast-qual -Wdeclaration-after-statement -Wdiv-by-zero -Wempty-body -Wendif-labels -Wfloat-equal -Wformat-security -Wignored-qualifiers -Wmissing-field-initializers -Wmissing-noreturn -Wno-padded -Wno-sign-conversion -Wno-switch-default -Wno-switch-enum -Wno-system-headers -Wold-style-definition -Wredundant-decls -Wstrict-prototypes -Wtype-limits -Wunreachable-code -Wunused-parameter -Wvla -Wconditional-uninitialized -Wno-used-but-marked-unused -Wshift-sign-overflow -Wshorten-64-to-32 -Wformat=2 -Wlanguage-extension-token -Wno-covered-switch-default -Wno-disabled-macro-expansion -Wformat-non-iso -Wenum-conversion -Wmissing-variable-declarations -Wno-documentation-unknown-command -Wsometimes-uninitialized -Wdouble-promotion -Wheader-guard -Wpragmas -Wunused-const-variable -Wcomma -Wassign-enum -Wextra-semi-stmt -Wimplicit-fallthrough -Wxor-used-as-pow -Wcast-function-type -Wreserved-identifier -Wno-reserved-macro-identifier -Wno-unsafe-buffer-usage -Wcast-function-type-strict -Wformat-signedness
-- Found Perl: /opt/homebrew/bin/perl (found version "5.44.0")
-- Pre-filling feature detection results for UNIX
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
CMake Error at /opt/homebrew/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:290 (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):
-- Configuring incomplete, errors occurred!
  /opt/homebrew/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:654 (_FPHSA_FAILURE_MESSAGE)
  /opt/homebrew/share/cmake/Modules/FindOpenSSL.cmake:752 (find_package_handle_standard_args)
  CMakeLists.txt:829 (find_package)
[...]
    candidate_directories:
      - "/Applications/Xcode_26.6.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS26.5.sdk/Users/runner/libressl/include/"
      - "/Applications/Xcode_26.6.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS26.5.sdk/Users/runner/libressl/"
      - "/Applications/Xcode_26.6.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS26.5.sdk/opt/homebrew/Cellar/openssl@4/4.0.3/include/include/"
```
@vszakats vszakats closed this in 6e57ed1 Oct 20, 2026
@vszakats
vszakats deleted the gha-ios-test branch October 20, 2026 23:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

appleOS specific to an Apple operating system build CI Continuous Integration cmake tidy-up TLS

Development

Successfully merging this pull request may close these issues.

1 participant