Skip to content

Commit

Permalink
Account for repo rename SwiftCMakeXCTesting => CMakeModules.
Browse files Browse the repository at this point in the history
  • Loading branch information
dabrahams committed Mar 18, 2024
1 parent 40968cd commit 750a1c4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmake/modules/GenerateSwiftXCTestMain_FetchDependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ block()

set(FETCHCONTENT_TRY_FIND_PACKAGE_MODE NEVER)

FetchContent_Declare(SwiftCMakeXCTesting
GIT_REPOSITORY https://github.com/hylo-lang/SwiftCMakeXCTesting.git
FetchContent_Declare(Hylo-CMakeModules
GIT_REPOSITORY https://github.com/hylo-lang/CMakeModules.git
GIT_TAG main
OVERRIDE_FIND_PACKAGE
)
Expand All @@ -30,8 +30,8 @@ endblock()
# ArgumentParser relies on XCTest even in its non-test code and it seems not to have the necessary
# target properties to find it, at least in some contexts. Hopefully FindSwiftXCTest sets those up
# in time.
FetchContent_MakeAvailable(SwiftCMakeXCTesting)
list(PREPEND CMAKE_MODULE_PATH ${swiftcmakexctesting_SOURCE_DIR})
FetchContent_MakeAvailable(Hylo-CMakeModules)
list(PREPEND CMAKE_MODULE_PATH ${hylo-cmakemodules_SOURCE_DIR})
find_package(SwiftXCTest REQUIRED)

# See https://github.com/apple/swift-syntax/pull/2454, which will hopefully make this clause
Expand Down

0 comments on commit 750a1c4

Please sign in to comment.