Skip to content

Commit bd838b3

Browse files
committed
Distribution Packaging Improvements
1 parent 7b2a86c commit bd838b3

File tree

10 files changed

+566
-89
lines changed

10 files changed

+566
-89
lines changed

.github/workflows/linux_x86_omnibus.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,24 @@ jobs:
112112
source /opt/compiler-env/setup-clang-9.sh
113113
./tests/ci/run_install_shared_and_static.sh
114114
115+
dist_pkg_tests:
116+
runs-on:
117+
- codebuild-aws-lc-ci-github-actions-${{ github.run_id }}-${{ github.run_attempt }}
118+
image:linux-5.0
119+
instance-size:small
120+
steps:
121+
- uses: actions/checkout@v5
122+
- name: Login to Amazon ECR
123+
id: login-ecr
124+
uses: aws-actions/amazon-ecr-login@v2
125+
- uses: ./.github/actions/codebuild-docker-run
126+
name: Run Container
127+
with:
128+
image: ${{ steps.login-ecr.outputs.registry }}/aws-lc/ubuntu:20.04
129+
run: |
130+
source /opt/compiler-env/setup-clang-9.sh
131+
./tests/ci/run_dist_pkg_tests.sh
132+
115133
# Build and test aws-lc without Perl/Go.
116134
minimal_tests:
117135
name: minimal-${{ matrix.image }}-${{ matrix.compiler }}-x86_64

CMakeLists.txt

Lines changed: 105 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,22 @@ set(REPORTED_PKGCONFIG_VERSION "1.1.1")
1919
# Defer enabling C and CXX languages.
2020
project(AWSLC VERSION "${SOFTWARE_VERSION}" LANGUAGES NONE)
2121

22+
option(BUILD_TESTING "Build all test targets for AWS-LC" ON)
23+
option(BUILD_LIBSSL "Build libssl for AWS-LC" ON)
24+
option(BUILD_TOOL "Build bssl tool for AWS-LC" ON)
25+
option(DISABLE_PERL "Disable Perl for AWS-LC" OFF)
26+
option(DISABLE_GO "Disable Go for AWS-LC" OFF)
27+
# Keeping this flag for now, for compatibility with existing build configs.
28+
option(ENABLE_FIPS_ENTROPY_CPU_JITTER "Enable FIPS entropy source: CPU Jitter" OFF)
29+
option(ENABLE_DATA_INDEPENDENT_TIMING "Enable automatic setting/resetting Data-Independent Timing
30+
(DIT) flag in cryptographic functions. Currently only applicable to Arm64 (except on Windows)" OFF)
31+
option(ENABLE_PRE_SONAME_BUILD "Build AWS-LC without SONAME configuration for shared library builds" ON)
32+
option(ENABLE_SOURCE_MODIFICATION "Allow the build to update files in the source directory. This is typically done to update versioning." ON)
33+
option(DISABLE_CPU_JITTER_ENTROPY "Disable usage of CPU Jitter Entropy as an entropy source. This option cannot be used with the FIPS build. With this configuration, randomness generation might not use two independent entropy sources." OFF)
34+
option(GENERATE_RUST_BINDINGS "Generate Rust bindings using bindgen-cli" OFF)
35+
option(ENABLE_DIST_PKG "Enables a set of packaging that take highest presedence to any other packaging configuration i.e. ENABLE_PRE_SONAME_BUILD" OFF)
36+
option(ENABLE_DIST_PKG_OPENSSL_SHIM "Controls whether the OpenSSL shim componenets are installed when ENABLE_DIST_PKG is enabled" OFF)
37+
2238
if(MSVC)
2339
# On Windows, prefer cl over gcc if both are available. By default most of
2440
# the CMake generators prefer gcc, even on Windows.
@@ -81,36 +97,47 @@ function(target_add_awslc_include_paths)
8197
target_include_directories(${arg_TARGET} BEFORE ${arg_SCOPE}
8298
$<$<BOOL:${INCLUDE_PREFIX_HEADERS}>:$<BUILD_INTERFACE:${AWSLC_BINARY_DIR}/symbol_prefix_include>>
8399
$<BUILD_INTERFACE:${AWSLC_SOURCE_DIR}/include>
84-
$<INSTALL_INTERFACE:include>)
100+
$<INSTALL_INTERFACE:${AWSLC_INSTALL_INCLUDEDIR}>)
85101
endfunction()
86102

87-
option(BUILD_TESTING "Build all test targets for AWS-LC" ON)
88-
option(BUILD_LIBSSL "Build libssl for AWS-LC" ON)
89-
option(BUILD_TOOL "Build bssl tool for AWS-LC" ON)
90-
option(DISABLE_PERL "Disable Perl for AWS-LC" OFF)
91-
option(DISABLE_GO "Disable Go for AWS-LC" OFF)
92-
# Keeping this flag for now, for compatibility with existing build configs.
93-
option(ENABLE_FIPS_ENTROPY_CPU_JITTER "Enable FIPS entropy source: CPU Jitter" OFF)
94-
option(ENABLE_DATA_INDEPENDENT_TIMING "Enable automatic setting/resetting Data-Independent Timing
95-
(DIT) flag in cryptographic functions. Currently only applicable to Arm64 (except on Windows)" OFF)
96-
option(ENABLE_PRE_SONAME_BUILD "Build AWS-LC without SONAME configuration for shared library builds" ON)
97-
option(ENABLE_SOURCE_MODIFICATION "Allow the build to update files in the source directory. This is typically done to update versioning." ON)
98-
option(DISABLE_CPU_JITTER_ENTROPY "Disable usage of CPU Jitter Entropy as an entropy source. This option cannot be used with the FIPS build. With this configuration, randomness generation might not use two independent entropy sources." OFF)
99-
option(GENERATE_RUST_BINDINGS "Generate Rust bindings using bindgen-cli" OFF)
103+
100104
set(RUST_BINDINGS_TARGET_VERSION "1.70" CACHE STRING "Minimum Rust version for generated bindings")
101105

102106
include(cmake/go.cmake)
103107

104-
if(NOT ENABLE_PRE_SONAME_BUILD AND BUILD_SHARED_LIBS AND UNIX AND NOT APPLE)
105-
set(PERFORM_SONAME_BUILD 1)
108+
if(ENABLE_DIST_PKG AND UNIX AND NOT APPLE)
109+
set(SET_LIB_SONAME 1)
110+
set(COHABITANT_HEADERS 1)
111+
if(ENABLE_DIST_PKG_OPENSSL_SHIM)
112+
set(INSTALL_OPENSSL_SHIM 1)
113+
else()
114+
set(INSTALL_OPENSSL_SHIM 0)
115+
endif()
116+
elseif(NOT ENABLE_PRE_SONAME_BUILD AND BUILD_SHARED_LIBS AND UNIX AND NOT APPLE)
117+
set(SET_LIB_SONAME 1)
118+
set(COHABITANT_HEADERS 0)
119+
set(INSTALL_OPENSSL_SHIM 1)
120+
else()
121+
set(SET_LIB_SONAME 0)
122+
set(COHABITANT_HEADERS 0)
123+
set(INSTALL_OPENSSL_SHIM 1)
124+
endif()
125+
126+
if(SET_LIB_SONAME)
106127
set(CRYPTO_LIB_NAME "${CRYPTO_LIB_NAME}-${SOFTWARE_NAME}")
107128
set(SSL_LIB_NAME "${SSL_LIB_NAME}-${SOFTWARE_NAME}")
129+
endif()
130+
131+
# Set the install include directory based on whether a prefix subdirectory is desired
132+
if(COHABITANT_HEADERS)
133+
set(AWSLC_INSTALL_INCLUDEDIR "${CMAKE_INSTALL_INCLUDEDIR}/aws-lc")
108134
else()
109-
set(PERFORM_SONAME_BUILD 0)
135+
set(AWSLC_INSTALL_INCLUDEDIR "${CMAKE_INSTALL_INCLUDEDIR}")
110136
endif()
111137

112-
message(STATUS "ENABLE_PRE_SONAME_BUILD: ${ENABLE_PRE_SONAME_BUILD}")
113-
message(STATUS "PERFORM_SONAME_BUILD: ${PERFORM_SONAME_BUILD}")
138+
if(NOT ENABLE_PRE_SONAME_BUILD)
139+
message(WARNING "ENABLE_PRE_SONAME_BUILD option will be deprecated in a future release. Please see ENABLE_DIST_PKG and ENABLE_DIST_PKG_OPENSSL_SHIM")
140+
endif()
114141

115142
enable_language(C)
116143

@@ -168,8 +195,6 @@ else()
168195
message(STATUS "Entropy source configured: Dynamic (default: CPU Jitter)")
169196
endif()
170197

171-
172-
173198
if(${CMAKE_SYSTEM_NAME} STREQUAL "OpenBSD")
174199
# OpenBSD by defaults links with --execute-only this is problematic for two reasons:
175200
# 1. The FIPS shared and static builds need to compute the module signature hash by reading the .text section
@@ -263,7 +288,7 @@ elseif(NOT DEFINED CMAKE_INSTALL_LIBDIR)
263288
endif()
264289

265290
install(DIRECTORY include/openssl
266-
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
291+
DESTINATION ${AWSLC_INSTALL_INCLUDEDIR}
267292
COMPONENT Development
268293
PATTERN boringssl_prefix_symbols.h EXCLUDE
269294
PATTERN boringssl_prefix_symbols_asm.h EXCLUDE
@@ -364,7 +389,7 @@ if(BORINGSSL_PREFIX AND BORINGSSL_PREFIX_SYMBOLS AND GO_EXECUTABLE)
364389
symbol_prefix_include/openssl/boringssl_prefix_symbols_nasm.inc)
365390

366391
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/symbol_prefix_include/openssl
367-
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
392+
DESTINATION ${AWSLC_INSTALL_INCLUDEDIR}
368393
COMPONENT Development
369394
)
370395
elseif(BORINGSSL_PREFIX AND BORINGSSL_PREFIX_HEADERS)
@@ -384,7 +409,7 @@ elseif(BORINGSSL_PREFIX AND BORINGSSL_PREFIX_HEADERS)
384409
add_custom_target(boringssl_prefix_symbols)
385410

386411
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/symbol_prefix_include/openssl
387-
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
412+
DESTINATION ${AWSLC_INSTALL_INCLUDEDIR}
388413
COMPONENT Development
389414
)
390415
elseif(BORINGSSL_PREFIX AND BORINGSSL_PREFIX_SYMBOLS AND NOT GO_EXECUTABLE)
@@ -398,7 +423,7 @@ else()
398423
add_custom_target(boringssl_prefix_symbols)
399424

400425
install(DIRECTORY include/openssl
401-
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
426+
DESTINATION ${AWSLC_INSTALL_INCLUDEDIR}
402427
COMPONENT Development
403428
FILES_MATCHING
404429
PATTERN boringssl_prefix_symbols.h
@@ -1466,15 +1491,22 @@ endif()
14661491
file(GLOB OPENSSL_PKGCONFIGS "pkgconfig/*.pc.in")
14671492

14681493
include(cmake/JoinPaths.cmake)
1469-
join_paths(libdir_for_pc_file "\${prefix}" "${CMAKE_INSTALL_LIBDIR}")
1470-
join_paths(includedir_for_pc_file "\${prefix}" "${CMAKE_INSTALL_INCLUDEDIR}")
1471-
1472-
foreach(in_file ${OPENSSL_PKGCONFIGS})
1473-
file(RELATIVE_PATH in_file ${AWSLC_SOURCE_DIR} ${in_file})
1474-
string(REPLACE ".in" "" pc_file ${in_file})
1475-
configure_file(${in_file} ${CMAKE_CURRENT_BINARY_DIR}/${pc_file} @ONLY)
1476-
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${pc_file} DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
1477-
endforeach()
1494+
join_paths(LIBDIR_FOR_PC_FILE "\${prefix}" "${CMAKE_INSTALL_LIBDIR}")
1495+
join_paths(INCLUDEDIR_FOR_PC_FILE "\${prefix}" "${AWSLC_INSTALL_INCLUDEDIR}")
1496+
1497+
function(install_pkgconfig_file)
1498+
set(options "")
1499+
set(oneValueArgs TEMPLATE DEST)
1500+
set(multiValueArgs)
1501+
if(CMAKE_VERSION VERSION_LESS "3.7")
1502+
cmake_parse_arguments(arg "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
1503+
else()
1504+
cmake_parse_arguments(PARSE_ARGV 0 arg "${options}" "${oneValueArgs}" "${multiValueArgs}")
1505+
endif()
1506+
1507+
configure_file(pkgconfig/${arg_TEMPLATE} ${CMAKE_CURRENT_BINARY_DIR}/pkgconfig/${arg_DEST} @ONLY)
1508+
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/pkgconfig/${arg_DEST} DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
1509+
endfunction()
14781510

14791511
if(ENABLE_SOURCE_MODIFICATION)
14801512
configure_file(include/openssl/base.h.in ${AWSLC_SOURCE_DIR}/include/openssl/base.h @ONLY)
@@ -1483,3 +1515,42 @@ if(ENABLE_SOURCE_MODIFICATION)
14831515
configure_file(util/check-linkage.sh.in check-linkage.sh @ONLY)
14841516
endif()
14851517
endif()
1518+
1519+
install_pkgconfig_file(TEMPLATE product.pc.in DEST aws-lc.pc)
1520+
install_pkgconfig_file(TEMPLATE libcrypto.pc.in DEST lib${CRYPTO_LIB_NAME}.pc)
1521+
install_pkgconfig_file(TEMPLATE libssl.pc.in DEST lib${SSL_LIB_NAME}.pc)
1522+
1523+
if(INSTALL_OPENSSL_SHIM)
1524+
install_pkgconfig_file(TEMPLATE product.pc.in DEST openssl.pc)
1525+
1526+
# Create OpenSSL compatibility symlinks
1527+
if(BUILD_SHARED_LIBS)
1528+
if(SET_LIB_SONAME)
1529+
# When SONAME build is enabled, libraries have -awslc suffix
1530+
install(CODE "
1531+
execute_process(COMMAND \${CMAKE_COMMAND} -E create_symlink
1532+
lib${CRYPTO_LIB_NAME}.so \"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/libcrypto.so\")
1533+
execute_process(COMMAND \${CMAKE_COMMAND} -E create_symlink
1534+
lib${SSL_LIB_NAME}.so \"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/libssl.so\")
1535+
")
1536+
endif()
1537+
else()
1538+
if(SET_LIB_SONAME)
1539+
# When SONAME build is enabled, libraries have -awslc suffix
1540+
install(CODE "
1541+
execute_process(COMMAND \${CMAKE_COMMAND} -E create_symlink
1542+
lib${CRYPTO_LIB_NAME}.a \"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/libcrypto.a\")
1543+
execute_process(COMMAND \${CMAKE_COMMAND} -E create_symlink
1544+
lib${SSL_LIB_NAME}.a \"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/libssl.a\")
1545+
" COMPONENT Development)
1546+
endif()
1547+
endif()
1548+
1549+
if(COHABITANT_HEADERS)
1550+
# Always create the include directory symlink for OpenSSL compatibility
1551+
install(CODE "
1552+
execute_process(COMMAND \${CMAKE_COMMAND} -E create_symlink
1553+
aws-lc/openssl \"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_INCLUDEDIR}/openssl\")
1554+
" COMPONENT Development)
1555+
endif()
1556+
endif()

crypto/CMakeLists.txt

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ function(build_libcrypto)
618618
set_target_properties(${arg_NAME} PROPERTIES OUTPUT_NAME "${CRYPTO_LIB_NAME}")
619619
endif()
620620

621-
if(PERFORM_SONAME_BUILD)
621+
if(SET_LIB_SONAME)
622622
set_target_properties(${arg_NAME} PROPERTIES
623623
VERSION "${SOFTWARE_VERSION}"
624624
SOVERSION "${ABI_VERSION}")
@@ -918,12 +918,19 @@ if(BUILD_TESTING)
918918

919919
endif()
920920

921-
install(TARGETS crypto
922-
EXPORT crypto-targets
923-
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
924-
LIBRARY
925-
DESTINATION ${CMAKE_INSTALL_LIBDIR}
926-
NAMELINK_SKIP)
921+
if(NOT CMAKE_VERSION VERSION_LESS "3.12")
922+
install(TARGETS crypto
923+
EXPORT crypto-targets
924+
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
925+
LIBRARY
926+
DESTINATION ${CMAKE_INSTALL_LIBDIR}
927+
NAMELINK_COMPONENT Development)
928+
else()
929+
install(TARGETS crypto
930+
EXPORT crypto-targets
931+
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
932+
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
933+
endif()
927934

928935
if(MSVC AND CMAKE_BUILD_TYPE_LOWER MATCHES "relwithdebinfo" AND FIPS)
929936
install (FILES $<TARGET_FILE_DIR:crypto>/crypto.pdb DESTINATION ${CMAKE_INSTALL_LIBDIR})
@@ -947,13 +954,3 @@ install(EXPORT crypto-targets
947954
DESTINATION "${CMAKE_INSTALL_LIBDIR}/crypto/cmake/${TARGET_DIR}"
948955
NAMESPACE AWS::
949956
COMPONENT Development)
950-
951-
if(PERFORM_SONAME_BUILD)
952-
install(CODE "
953-
set(TGT lib${CRYPTO_LIB_NAME}.so.${ABI_VERSION})
954-
set(LNK \$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/libcrypto.so)
955-
message(STATUS \"Creating symlink: \${LNK} → \${TGT}\")
956-
execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink \${TGT} \${LNK})
957-
"
958-
COMPONENT Development)
959-
endif()

pkgconfig/libcrypto.pc.in

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
prefix=@CMAKE_INSTALL_PREFIX@
2-
libdir=@libdir_for_pc_file@
3-
includedir=@includedir_for_pc_file@
2+
libdir=@LIBDIR_FOR_PC_FILE@
3+
includedir=@INCLUDEDIR_FOR_PC_FILE@
44

5-
Name: AWS-LC-libcrypto
6-
Description: AWS-LC cryptography library
5+
Name: lib@CRYPTO_LIB_NAME@
6+
Description: AWS-LC Cryptographic Library (@SOFTWARE_VERSION@)
77
Version: @REPORTED_PKGCONFIG_VERSION@
8-
Libs: -L${libdir} -lcrypto
8+
Libs: -L${libdir} -l@CRYPTO_LIB_NAME@
99
Cflags: -I${includedir}

pkgconfig/libssl.pc.in

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
prefix=@CMAKE_INSTALL_PREFIX@
2-
libdir=@libdir_for_pc_file@
3-
includedir=@includedir_for_pc_file@
2+
libdir=@LIBDIR_FOR_PC_FILE@
3+
includedir=@INCLUDEDIR_FOR_PC_FILE@
44

5-
Name: AWS-LC-libssl
6-
Description: AWS-LC (OpenSSL SHIM)
5+
Name: lib@SSL_LIB_NAME@
6+
Description: AWS-LC TLS Library (@SOFTWARE_VERSION@)
77
Version: @REPORTED_PKGCONFIG_VERSION@
8-
Requires.private: libcrypto
9-
Libs: -L${libdir} -lssl
8+
Requires.private: lib@CRYPTO_LIB_NAME@
9+
Libs: -L${libdir} -l@SSL_LIB_NAME@
1010
Cflags: -I${includedir}

pkgconfig/openssl.pc.in

Lines changed: 0 additions & 8 deletions
This file was deleted.

pkgconfig/product.pc.in

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
prefix=@CMAKE_INSTALL_PREFIX@
2+
libdir=@LIBDIR_FOR_PC_FILE@
3+
includedir=@INCLUDEDIR_FOR_PC_FILE@
4+
5+
Name: AWS-LC
6+
Description: AWS-LC (@SOFTWARE_VERSION@)
7+
Version: @REPORTED_PKGCONFIG_VERSION@
8+
Requires: lib@CRYPTO_LIB_NAME@ lib@SSL_LIB_NAME@

ssl/CMakeLists.txt

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ target_add_awslc_include_paths(TARGET ssl SCOPE PUBLIC)
5252
set_target_properties(ssl PROPERTIES
5353
OUTPUT_NAME "${SSL_LIB_NAME}")
5454

55-
if(PERFORM_SONAME_BUILD)
55+
if(SET_LIB_SONAME)
5656
set_target_properties(ssl PROPERTIES
5757
VERSION "${SOFTWARE_VERSION}"
5858
SOVERSION "${ABI_VERSION}")
@@ -112,13 +112,19 @@ if(BUILD_TESTING)
112112
add_subdirectory(test)
113113
endif()
114114

115-
install(TARGETS ssl
116-
EXPORT ssl-targets
117-
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
118-
LIBRARY
119-
DESTINATION ${CMAKE_INSTALL_LIBDIR}
120-
NAMELINK_SKIP
121-
)
115+
if(NOT CMAKE_VERSION VERSION_LESS "3.12")
116+
install(TARGETS ssl
117+
EXPORT ssl-targets
118+
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
119+
LIBRARY
120+
DESTINATION ${CMAKE_INSTALL_LIBDIR}
121+
NAMELINK_COMPONENT Development)
122+
else()
123+
install(TARGETS ssl
124+
EXPORT ssl-targets
125+
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
126+
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
127+
endif()
122128

123129
if(MSVC AND CMAKE_BUILD_TYPE_LOWER MATCHES "relwithdebinfo" AND FIPS)
124130
install(FILES $<TARGET_FILE_DIR:ssl>/ssl.pdb DESTINATION ${CMAKE_INSTALL_LIBDIR})
@@ -142,13 +148,3 @@ install(EXPORT ssl-targets
142148
DESTINATION "${CMAKE_INSTALL_LIBDIR}/ssl/cmake/${TARGET_DIR}"
143149
NAMESPACE AWS::
144150
COMPONENT Development)
145-
146-
if(PERFORM_SONAME_BUILD)
147-
install(CODE "
148-
set(TGT lib${SSL_LIB_NAME}.so.${ABI_VERSION})
149-
set(LNK \$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/libssl.so)
150-
message(STATUS \"Creating symlink: \${LNK} → \${TGT}\")
151-
execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink \${TGT} \${LNK})
152-
"
153-
COMPONENT Development)
154-
endif()

0 commit comments

Comments
 (0)