build: disable plugins which require openssl if openssl is not available
[vpp.git] / src / plugins / quic / CMakeLists.txt
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")