2019-07-18
2019-07-18 本文已影响0人
阿群1986
if (NOT DEFINED OPENSSL_ROOT_DIR)
set(OPENSSL_ROOT_DIR /usr/local)
endif ()
find_package(OpenSSL 1.1 REQUIRED)
if(OPENSSL_FOUND)
set(OPENSSL_USE_STATIC_LIBS TRUE)
endif()
if (NOT DEFINED OPENSSL_ROOT_DIR)
set(OPENSSL_ROOT_DIR /usr/local)
endif ()
find_package(OpenSSL 1.1 REQUIRED)
if(OPENSSL_FOUND)
set(OPENSSL_USE_STATIC_LIBS TRUE)
endif()