mirror of
https://github.com/apple/swift-crypto
synced 2026-11-24 04:37:48 +00:00
Motivation: SwiftPM's CMake build (https://github.com/apple/swift-package-manager/pull/3202) unsuccessful even with https://github.com/apple/swift-crypto/pull/60. Modifications: - Use consistent `SWIFT_CRYPTO_EXPORTS` naming. In some places `CRYPTO_EXPORTS` was used instead. - Install `CCryptoBoringSSL` so we can import it in code (see https://github.com/apple/swift-package-manager/pull/3202) - Always set `BUILD_SHARED_LIBS` Result: Successful CMake build.
18 lines
575 B
CMake
18 lines
575 B
CMake
##===----------------------------------------------------------------------===##
|
|
##
|
|
## This source file is part of the SwiftCrypto open source project
|
|
##
|
|
## Copyright (c) 2021 Apple Inc. and the SwiftCrypto project authors
|
|
## Licensed under Apache License v2.0
|
|
##
|
|
## See LICENSE.txt for license information
|
|
## See CONTRIBUTORS.md for the list of SwiftCrypto project authors
|
|
##
|
|
## SPDX-License-Identifier: Apache-2.0
|
|
##
|
|
##===----------------------------------------------------------------------===##
|
|
|
|
if(NOT TARGET SwiftCrypto)
|
|
include(@SWIFT_CRYPTO_EXPORTS_FILE@)
|
|
endif()
|