@@ -385,7 +385,7 @@ commands:
385
385
name : Installing dependencies / Restoring dependency cache
386
386
command : |
387
387
if [[ -f ~/osx-dependencies-cached ]]; then
388
- echo "Dependency flag exists. Removing /usr/local/ and /opt/homebrew/. These directories will be restored from cache."
388
+ echo "Dependency flag exists. Removing /usr/local/, /opt/homebrew/, and /opt/boost . These directories will be restored from cache."
389
389
390
390
# CircleCI is providing the circleci cli tools via some kind of symlink magic.
391
391
# So we just save the original symlinks and restore them later.
@@ -405,6 +405,10 @@ commands:
405
405
sudo mkdir -p /usr/local/bin
406
406
sudo chmod 777 /usr/{local,local/bin}
407
407
408
+ sudo rm -rf /opt/boost
409
+ sudo mkdir -p /opt/boost
410
+ sudo chmod 777 /opt/boost
411
+
408
412
mv /tmp/circleci "${circleci_binary_path}"
409
413
mv /tmp/circleci-agent "${circleci_agent_binary_path}"
410
414
fi
@@ -425,6 +429,7 @@ commands:
425
429
# Homebrew is installed in /usr/local on intel macs, but in /opt/homebrew on apple silicon.
426
430
- /usr/local
427
431
- /opt/homebrew
432
+ - /opt/boost
428
433
- save_cache :
429
434
key : osx-dependencies-cached-{{ arch }}-{{ checksum ".circleci/osx_install_dependencies.sh" }}
430
435
paths :
@@ -1159,7 +1164,8 @@ jobs:
1159
1164
environment :
1160
1165
<< : *base_osx_env
1161
1166
CMAKE_BUILD_TYPE : Release
1162
- CMAKE_OPTIONS : -DCMAKE_OSX_ARCHITECTURES:STRING=x86_64;arm64
1167
+ # boost root configured to the prefix used in `osx_install_dependencies.sh`
1168
+ CMAKE_OPTIONS : -DCMAKE_OSX_ARCHITECTURES:STRING=x86_64;arm64 -DBoost_ROOT=/opt/boost
1163
1169
steps :
1164
1170
- checkout
1165
1171
- install_dependencies_osx
0 commit comments