Print

Print


This stackoverflow post claims the root cause is a CMake bug: https://stackoverflow.com/a/62063357/12657814 and suggests the workaround:
```diff
diff --git a/cmake/XRootDFindLibs.cmake b/cmake/XRootDFindLibs.cmake
index 532c8ce1c..de71c6613 100644
--- a/cmake/XRootDFindLibs.cmake
+++ b/cmake/XRootDFindLibs.cmake
@@ -34,6 +34,13 @@ endif()
 find_package( CURL )

 if( ENABLE_CRYPTO )
+  if (APPLE)
+      # This is a bug in CMake that causes it to prefer the system version over
+      # the one in the specified ROOT folder.
+      set(OPENSSL_ROOT_DIR ${OPENSSL_ROOT_DIR} [log in to unmask])
+      set(OPENSSL_CRYPTO_LIBRARY ${OPENSSL_ROOT_DIR}/lib/libcrypto.dylib CACHE FILEPATH "" FORCE)
+      set(OPENSSL_SSL_LIBRARY ${OPENSSL_ROOT_DIR}/lib/libssl.dylib CACHE FILEPATH "" FORCE)
+  endif()
   find_package( OpenSSL )
   if( OPENSSL_FOUND )
     add_definitions( -DHAVE_XRDCRYPTO )
```
which worked on my machine (assuming brew install path)

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/xrootd/xrootd/issues/1302#issuecomment-796269624

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1