Problem installing root 5.34.36 on macos Sierra 10.12

I downloaded root 5.34.36 source from the website, unpacked, and ran cmake from inside a new directory root5build (just following the quick start guide at root.cern.ch/building-root). Build files were generated fine, but when I run

cmake --build .

I get an error

[ 26%] Generating hsimple.root
dyld: Library not loaded: libssl.1.0.0.dylib
Referenced from: /Users/jordan/root5build/lib/libNet.so
Reason: image not found
make[2]: *** [hsimple.root] Abort trap: 6
make[1]: *** [CMakeFiles/hsimple.dir/all] Error 2
make: *** [all] Error 2

I’m running on macos Sierra 10.12 with Xcode 8.0

Solved the issue: had installed openssl with brew, followed this stackoverflow answer

stackoverflow.com/a/27255243