From 33a20e650c33f6d72d822d558333f2085effa3dc Mon Sep 17 00:00:00 2001 From: Evan Wilde Date: Tue, 18 Apr 2023 22:40:30 -0700 Subject: [PATCH] Set CRYPTO_IN_SWIFTPM (#177) Needed to expose SecureEncalve through SwiftCrypto when building for Swift-Certificates. CRYPTO_IN_SWIFTPM is set all of the time in package.swift, while CRYPTO_IN_SWIFTPM_FORCE_BUILD_API is only set in development. Lets enable the one that's on all of the time, and remove the one that isn't so that we get our declarations. --- Sources/Crypto/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Crypto/CMakeLists.txt b/Sources/Crypto/CMakeLists.txt index 6ebaa8bb..54cf7b1b 100644 --- a/Sources/Crypto/CMakeLists.txt +++ b/Sources/Crypto/CMakeLists.txt @@ -82,7 +82,7 @@ add_library(Crypto "Util/Zeroization.swift") target_compile_definitions(Crypto PRIVATE - CRYPTO_IN_SWIFTPM_FORCE_BUILD_API) + "$<$:CRYPTO_IN_SWIFTPM>") target_include_directories(Crypto PRIVATE $ $