1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2025-06-28 11:55:08 +03:00

limit checks to non windows only

This commit is contained in:
Ilya Shipitsin 2021-08-08 17:13:18 +05:00
parent 8554dc504c
commit 0cdc748c83

View File

@ -32,6 +32,8 @@ target_link_libraries(mayaqua
ZLIB::ZLIB
)
if(NOT WIN32)
set(CMAKE_REQUIRED_INCLUDES ${OPENSSL_INCLUDE_DIR})
set(CMAKE_REQUIRED_LIBRARIES ${OPENSSL_CRYPTO_LIBRARY})
@ -44,6 +46,8 @@ if(NOT HAVE_OPENSSL_EVP_PKEY)
message(FATAL_ERROR "required EVP_PKEY_get_raw_public_key() is not found in OpenSSL library")
endif()
endif()
if(WIN32)
set_target_properties(mayaqua
PROPERTIES