1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2025-04-03 18:00:08 +03:00

unset variables after check

This commit is contained in:
Ilya Shipitsin 2021-07-10 17:38:59 +05:00
parent 7692210393
commit 850465273d

View File

@ -37,6 +37,9 @@ set(CMAKE_REQUIRED_LIBRARIES ${OPENSSL_CRYPTO_LIBRARY})
check_function_exists(EVP_PKEY_get_raw_public_key HAVE_OPENSSL_EVP_PKEY) check_function_exists(EVP_PKEY_get_raw_public_key HAVE_OPENSSL_EVP_PKEY)
unset(CMAKE_REQUIRED_INCLUDES)
unset(CMAKE_REQUIRED_LIBRARIES)
if(NOT HAVE_OPENSSL_EVP_PKEY) if(NOT HAVE_OPENSSL_EVP_PKEY)
message(FATAL_ERROR "required EVP_PKEY_get_raw_public_key() is not found in OpenSSL library") message(FATAL_ERROR "required EVP_PKEY_get_raw_public_key() is not found in OpenSSL library")
endif() endif()