This commit is contained in:
@@ -33,20 +33,6 @@ find_package(OpenSSL REQUIRED)
|
|||||||
find_package(Drogon CONFIG REQUIRED)
|
find_package(Drogon CONFIG REQUIRED)
|
||||||
find_package(nlohmann_json REQUIRED)
|
find_package(nlohmann_json REQUIRED)
|
||||||
|
|
||||||
# Create OpenSSL targets for cross-compilation if missing
|
|
||||||
if(NOT TARGET OpenSSL::SSL)
|
|
||||||
add_library(OpenSSL::SSL STATIC IMPORTED)
|
|
||||||
set_target_properties(OpenSSL::SSL PROPERTIES
|
|
||||||
IMPORTED_LOCATION "/usr/local/lib64/libssl.a"
|
|
||||||
INTERFACE_INCLUDE_DIRECTORIES "/usr/local/include")
|
|
||||||
endif()
|
|
||||||
if(NOT TARGET OpenSSL::Crypto)
|
|
||||||
add_library(OpenSSL::Crypto STATIC IMPORTED)
|
|
||||||
set_target_properties(OpenSSL::Crypto PROPERTIES
|
|
||||||
IMPORTED_LOCATION "/usr/local/lib64/libcrypto.a"
|
|
||||||
INTERFACE_INCLUDE_DIRECTORIES "/usr/local/include")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# Determine architecture-specific libunwind
|
# Determine architecture-specific libunwind
|
||||||
if(CMAKE_SYSTEM_PROCESSOR MATCHES "^(x86_64|AMD64)$")
|
if(CMAKE_SYSTEM_PROCESSOR MATCHES "^(x86_64|AMD64)$")
|
||||||
set(LIBUNWIND_ARCH "x86_64")
|
set(LIBUNWIND_ARCH "x86_64")
|
||||||
|
Reference in New Issue
Block a user