While not ideal, we set the civetweb openssl 1.1 conditional compile based on
the openssl version that cmake reports. In future we should make civetweb itself
do this based on OPENSSL_VERSION_COMPAT
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
APPEND PROPERTY COMPILE_DEFINITIONS CRYPTO_LIB="${LIBCRYPTO_SONAME}")
endif()
+ if (OPENSSL_FOUND)
+ # Use cmake to determine openssl version, a TODO is to make
+ # civetweb itself do this based on openssl_api_compat strings
+ if (NOT (OPENSSL_VERSION VERSION_LESS "1.1"))
+ message(STATUS "Setting civetweb to use OPENSSL >= 1.1")
+ set_property(TARGET civetweb_common_objs
+ APPEND PROPERTY COMPILE_DEFINITIONS OPENSSL_API_1_1=1)
+ endif()
+ endif(OPENSSL_FOUND)
add_subdirectory(rgw)
endif(WITH_RADOSGW)