summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
258c2f6)
This code is orignally in automake, but it is missing in cmake.
Thus add it to make openssl async work in cmake build system
Change-Id: Ie69ee9c2099273e51ce13ccab27bdd2619db4814
Signed-off-by: Ping Yu <ping.yu@intel.com>
# See the License for the specific language governing permissions and
# limitations under the License.
# See the License for the specific language governing permissions and
# limitations under the License.
+include (CheckFunctionExists)
if(OPENSSL_FOUND)
include_directories(${OPENSSL_INCLUDE_DIR})
add_vpp_plugin(tlsopenssl
if(OPENSSL_FOUND)
include_directories(${OPENSSL_INCLUDE_DIR})
add_vpp_plugin(tlsopenssl
LINK_LIBRARIES
${OPENSSL_LIBRARIES}
)
LINK_LIBRARIES
${OPENSSL_LIBRARIES}
)
+
+ set(CMAKE_REQUIRED_INCLUDES "${OPENSSL_INCLUDE_DIR}")
+ set(CMAKE_REQUIRED_LIBRARIES "${OPENSSL_LIBRARIES}")
+ check_function_exists(SSL_set_async_callback HAVE_OPENSSL_ASYNC)
+
+ if (HAVE_OPENSSL_ASYNC)
+ add_definitions(-DHAVE_OPENSSL_ASYNC)
+ endif()
+
+