build: disable plugins which require openssl if openssl is not available 20/40220/1
authorDamjan Marion <damarion@cisco.com>
Fri, 19 Jan 2024 20:55:03 +0000 (21:55 +0100)
committerDamjan Marion <damarion@cisco.com>
Fri, 19 Jan 2024 20:56:35 +0000 (21:56 +0100)
Type: improvement
Change-Id: I4591fcb31dd28d1771b3d6e5afdaa14f29efe6ef
Signed-off-by: Damjan Marion <damarion@cisco.com>
src/plugins/lisp/CMakeLists.txt
src/plugins/quic/CMakeLists.txt
src/plugins/tlspicotls/CMakeLists.txt
src/plugins/wireguard/CMakeLists.txt

index bf0d60a..743a17e 100644 (file)
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
+if(NOT OPENSSL_FOUND)
+  message(WARNING "OpenSSL not found - lisp plugin disabled")
+  return()
+endif()
+
 ##############################################################################
 # LISP control plane: lisp-cp
 ##############################################################################
index 9646c44..65bdc32 100644 (file)
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
+if(NOT OPENSSL_FOUND)
+  message(WARNING "OpenSSL not found - quic plugin disabled")
+  return()
+endif()
+
 unset(QUIC_LINK_LIBRARIES)
 set(EXPECTED_QUICLY_VERSION "0.1.4-vpp")
 
index c8f7c64..e60a0e0 100644 (file)
@@ -1,5 +1,10 @@
 include (CheckFunctionExists)
 
+if(NOT OPENSSL_FOUND)
+  message(WARNING "OpenSSL not found - tlspicotls plugin disabled")
+  return()
+endif()
+
 # We should rely on a picotls specific version, but as
 # we expect dependancies to be built with vpp-ext-deps
 # it's reasonable to make this check to avoid breaking
index 581fcf2..710b6a3 100644 (file)
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
+if(NOT OPENSSL_FOUND)
+  message(WARNING "OpenSSL not found - wireguard plugin disabled")
+  return()
+endif()
+
 if (OPENSSL_VERSION VERSION_LESS 1.1.0)
+  message(WARNING "OpenSSL too old - wireguard plugin disabled")
   return()
 endif()