Update CMakeLists.txt

This commit is contained in:
halx99 2021-08-27 01:14:47 +08:00 committed by GitHub
parent 6070d416ac
commit 99e2e4ba4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -22,9 +22,13 @@ macro(set_openssl_sub_target sub_target_name sub_lib_name)
set(imp_lib_name "")
if(WINDOWS)
set(impl_lib_suffix "")
if(WIN64)
set(impl_lib_suffix "-{ARCH_ALIAS}")
endif()
set(imp_lib_name "${platform_spec_path}/lib${sub_lib_name}.lib")
set_target_properties(${sub_target_name} PROPERTIES
IMPORTED_LOCATION "${platform_spec_path}/lib${sub_lib_name}-1_1.dll"
IMPORTED_LOCATION "${platform_spec_path}/lib${sub_lib_name}-1_1${impl_lib_suffix}.dll"
IMPORTED_IMPLIB "${platform_spec_path}/lib${sub_lib_name}.lib"
)
else()