summaryrefslogtreecommitdiffstats
path: root/src/plugins/wireguard
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2024-01-19 21:55:03 +0100
committerDamjan Marion <damarion@cisco.com>2024-01-19 21:56:35 +0100
commit5840c66bbc15b265e280997b028442f9fedd92f6 (patch)
treea716a9f7a8982dcefb8a5963b8b0b7326ddd0fdb /src/plugins/wireguard
parent9705d848a2bf0a14fb832fb9e2bc0c4a71ff8952 (diff)
build: disable plugins which require openssl if openssl is not available
Type: improvement Change-Id: I4591fcb31dd28d1771b3d6e5afdaa14f29efe6ef Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/plugins/wireguard')
-rw-r--r--src/plugins/wireguard/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/wireguard/CMakeLists.txt b/src/plugins/wireguard/CMakeLists.txt
index 581fcf23860..710b6a3b04a 100644
--- a/src/plugins/wireguard/CMakeLists.txt
+++ b/src/plugins/wireguard/CMakeLists.txt
@@ -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()