diff options
Diffstat (limited to 'src/plugins/ikev2/CMakeLists.txt')
-rw-r--r-- | src/plugins/ikev2/CMakeLists.txt | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/plugins/ikev2/CMakeLists.txt b/src/plugins/ikev2/CMakeLists.txt index 6f2e5a68153..568271ed7d9 100644 --- a/src/plugins/ikev2/CMakeLists.txt +++ b/src/plugins/ikev2/CMakeLists.txt @@ -11,8 +11,13 @@ # See the License for the specific language governing permissions and # limitations under the License. -add_definitions (-DWITH_LIBSSL=1) +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 @@ -35,5 +40,5 @@ add_vpp_plugin(ikev2 ikev2_priv.h LINK_LIBRARIES - ${OPENSSL_LIBRARIES} + ${OPENSSL_CRYPTO_LIBRARIES} ) |