1
0
镜像自地址 https://github.com/henrydcase/optee_eng.git 已同步 2024-11-25 00:21:34 +00:00

make it compile

这个提交包含在:
Henry Case 2021-02-25 14:08:44 +00:00
父节点 445f94f89b
当前提交 e8c71f1f88

查看文件

@ -29,16 +29,17 @@ endif()
# Build OpenSSL if not provided, otherwise define
# OpenSSL_ssl_shared and OpenSSL_crypto_shared
if (BUILD_OPENSSL)
add_subdirectory(3rd/openssl-cmake)
else()
if (NOT OPENSSL_INSTALL_DIR)
message(FATAL_ERROR "Must specify -DOPENSSL_INSTALL_DIR")
endif()
set(OPENSSL_BUILD_INSTALL_ROOT ${OPENSSL_INSTALL_DIR})
set(OPENSSL_PREFIX_OPENSSLDIR ${CMAKE_INSTALL_PREFIX}${OPTEE_ENGINE_INSTALL_DIR}/openssl)
include(3rd/openssl-cmake/libdefs.cmake)
endif()
#if (BUILD_OPENSSL)
# add_subdirectory(3rd/openssl-cmake)
#else()
# # if (NOT OPENSSL_INSTALL_DIR)
# # message(FATAL_ERROR "Must specify -DOPENSSL_INSTALL_DIR")
# #endif()
# set(OPENSSL_BUILD_INSTALL_ROOT ${OPENSSL_INSTALL_DIR})
# set(OPENSSL_PREFIX_OPENSSLDIR ${CMAKE_INSTALL_PREFIX}${OPTEE_ENGINE_INSTALL_DIR}/openssl)
# include(3rd/openssl-cmake/libdefs.cmake)
#endif()
find_package(OpenSSL)
get_property(OPENSSL_INSTALL_DIR GLOBAL PROPERTY openssl_build_install_dir_property)
set(OPENSSL_INCLUDE_DIR ${OPENSSL_INSTALL_DIR}/include)
@ -132,7 +133,7 @@ target_link_directories(
target_link_libraries(
optee_eng
OpenSSL_crypto_shared
crypto
${CMAKE_DL_LIBS})
IF(${CMAKE_BUILD_TYPE} MATCHES "Debug")