X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fplugins%2Fikev2%2FCMakeLists.txt;h=568271ed7d9c45d2724ff0cc7040e582ef653cf3;hb=HEAD;hp=13297c6dbac08a8f1023feb254edca63e65d24ca;hpb=fc7b77db7e651505aa8c3a9c5cff7191334f91bd;p=vpp.git diff --git a/src/plugins/ikev2/CMakeLists.txt b/src/plugins/ikev2/CMakeLists.txt index 13297c6dbac..568271ed7d9 100644 --- a/src/plugins/ikev2/CMakeLists.txt +++ b/src/plugins/ikev2/CMakeLists.txt @@ -11,6 +11,14 @@ # See the License for the specific language governing permissions and # limitations under the License. +if(NOT OPENSSL_FOUND) + message(WARNING "openssl headers not found - ikev2 plugin disabled") + return() +endif() + +include_directories(${OPENSSL_INCLUDE_DIR}) +add_compile_definitions(OPENSSL_SUPPRESS_DEPRECATED) + add_vpp_plugin(ikev2 SOURCES ikev2.c @@ -21,6 +29,7 @@ add_vpp_plugin(ikev2 ikev2_payload.c API_FILES + ikev2_types.api ikev2.api API_TEST_SOURCES @@ -29,4 +38,7 @@ add_vpp_plugin(ikev2 INSTALL_HEADERS ikev2.h ikev2_priv.h + + LINK_LIBRARIES + ${OPENSSL_CRYPTO_LIBRARIES} )