Skip to content

Commit

Permalink
[CI] Explicitly set clang/clang++ as C/C++ compilers for macOS
Browse files Browse the repository at this point in the history
When not setting CMAKE_{C,CXX}_COMPILER explicitly, the default
ones (cc and c++) are picked up, but are not properly setup to
find headers, which causes build failures of the Python bindings.
  • Loading branch information
amadio committed Nov 9, 2022
1 parent 915d91f commit 2a8e04e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,8 @@ jobs:
run: |
cd ..
cmake \
-DCMAKE_C_COMPILER=clang \
-DCMAKE_CXX_COMPILER=clang++ \
-DCMAKE_INSTALL_PREFIX=/usr/local/ \
-DOPENSSL_SSL_LIBRARY=$(find $(find $(brew --cellar openssl) -type d -iname "lib") -type f -iname "libssl*.dylib") \
-DOPENSSL_CRYPTO_LIBRARY=$(find $(find $(brew --cellar openssl) -type d -iname "lib") -type f -iname "libcrypto*.dylib") \
Expand Down

0 comments on commit 2a8e04e

Please sign in to comment.