Skip to content

Commit b663423

Browse files
committed
CMake: Fix SwiftCrypto/SwiftASN1 order
SwiftCrypto requires SwiftASN1. SwiftCrypto should be declaring the dependency in its import files, but is not currently doing so resulting in `find_package(SwiftCrypto)` failing because the `SwiftASN1` target does not yet exist. By placing `find_package(SwiftASN1)` before finding SwiftCrypto, we ensure that the `SwiftASN1` target is populated ahead of time and finding SwiftCrypto succeeds.
1 parent 2f0a8af commit b663423

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ find_package(LLBuild QUIET)
2424
find_package(ArgumentParser CONFIG REQUIRED)
2525
find_package(SwiftCollections QUIET)
2626
find_package(SwiftSyntax CONFIG REQUIRED)
27-
find_package(SwiftCrypto CONFIG REQUIRED)
2827
find_package(SwiftASN1 CONFIG REQUIRED)
28+
find_package(SwiftCrypto CONFIG REQUIRED)
2929

3030
include(SwiftSupport)
3131

0 commit comments

Comments
 (0)