build: disable plugins which require openssl if openssl is not available

Type: improvement
Change-Id: I4591fcb31dd28d1771b3d6e5afdaa14f29efe6ef
Signed-off-by: Damjan Marion <damarion@cisco.com>
This commit is contained in:
Damjan Marion
2024-01-19 21:55:03 +01:00
parent 9705d848a2
commit 5840c66bbc
4 changed files with 21 additions and 0 deletions

View File

@@ -12,7 +12,13 @@
# 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()