I'm trying to build XRootD 5.1.1 on macOS 11 (Big Sur). As you may know, Apple stopped shipping OpenSSL on its OS with Big Sur. So when I tried to configure the build with `ENABLE_CRYPTO=TRUE`, I got a fairly understandable error: ``` CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: OPENSSL_CRYPTO_LIBRARY linked by target "XrdUtils" in directory /Users/krasznaa/ATLAS/projects/externals/build/src/XRootD/src linked by target "XrdCl" in directory /Users/krasznaa/ATLAS/projects/externals/build/src/XRootD/src/XrdCl OPENSSL_SSL_LIBRARY linked by target "XrdUtils" in directory /Users/krasznaa/ATLAS/projects/externals/build/src/XRootD/src linked by target "XrdCl" in directory /Users/krasznaa/ATLAS/projects/externals/build/src/XRootD/src/XrdCl CMake Error at src/XrdCrypto.cmake:7 (add_dependencies): The dependency target "XrdCryptossl-5" of target "plugins" does not exist. Call Stack (most recent call first): src/CMakeLists.txt:22 (include) ``` So I thought fine, I'll just try the build with `ENABLE_CRYPTO=FALSE`. That should fix this. But it doesn't quite. In that setup I still get the "last error" from the previous printout. ``` CMake Error at src/XrdCrypto.cmake:7 (add_dependencies): The dependency target "XrdCryptossl-5" of target "plugins" does not exist. Call Stack (most recent call first): src/CMakeLists.txt:22 (include) ``` I believe this is an error in the code, here: https://github.com/xrootd/xrootd/blob/master/src/XrdCrypto.cmake#L7 Since `XrdCryptossl-5` is only built with `ENABLE_CRYPTO=TRUE`, that line should rather be: ```cmake if( ENABLE_CRYPTO ) add_dependencies(plugins ${LIB_XRD_CRYPTOSSL}) endif() ``` -- 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/1455 ######################################################################## 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