summaryrefslogtreecommitdiffstats
path: root/src/plugins/ikev2/CMakeLists.txt
diff options
context:
space:
mode:
authorFilip Tehlar <ftehlar@cisco.com>2021-05-23 18:40:40 +0000
committerBeno�t Ganne <bganne@cisco.com>2021-09-29 14:44:03 +0000
commita5504a47cf4b494bd17012380313ecdb9d7b2a74 (patch)
treef8847e0de9d8427f3da366d041cd4738bd285f01 /src/plugins/ikev2/CMakeLists.txt
parentc773a7d5c823e8d804d7c9c52476ca1584843051 (diff)
ikev2: build only when deps requirements are met
Type: improvement Signed-off-by: Filip Tehlar <ftehlar@cisco.com> Change-Id: I89bcc1ba804ded676b194dbda52704cd0c54a67e
Diffstat (limited to 'src/plugins/ikev2/CMakeLists.txt')
-rw-r--r--src/plugins/ikev2/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/plugins/ikev2/CMakeLists.txt b/src/plugins/ikev2/CMakeLists.txt
index 6f2e5a68153..41292fc476e 100644
--- a/src/plugins/ikev2/CMakeLists.txt
+++ b/src/plugins/ikev2/CMakeLists.txt
@@ -11,7 +11,11 @@
# 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_vpp_plugin(ikev2