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 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/
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