this was for using openssl-0.9.8 included in macOS 10.7 - 10.12,
but it is long since time you really should not use that openssl
endif()
if (APPLE)
- # Get rid of deprecated warnings for OpenSSL on OSX 10.7 and greater.
+ # Clang on macOS emits warnings for each directory specified which isn't used
add_compiler_flags(
- -Wno-error=deprecated-declarations
-Qunused-arguments
)
endif()
dnl Clang on macOS emits warnings for each directory specified which
dnl isn't "used", generating a lot of build noise.
CFLAGS="$CFLAGS -Qunused-arguments"
- dnl macOS Lion started deprecating the system OpenSSL. Let's just
- dnl disable all deprecation warnings on macOS; but do so only for GCC.
- CFLAGS="$CFLAGS -Wno-deprecated-declarations"
;;
esac
fi