diff options
Diffstat (limited to 'src/plugins/wireguard/CMakeLists.txt')
-rw-r--r-- | src/plugins/wireguard/CMakeLists.txt | 6 |
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() |