Skip to content

Commit

Permalink
[CMake] Explicitly link Testing to Foundation
Browse files Browse the repository at this point in the history
  • Loading branch information
rintaro committed Sep 16, 2024
1 parent 22d6c76 commit 8072ea4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ endif()
project(SwiftTesting
LANGUAGES CXX Swift)

find_package(dispatch)
find_package(Foundation)

include(GNUInstallDirs)

list(APPEND CMAKE_MODULE_PATH
Expand Down
3 changes: 3 additions & 0 deletions Sources/Testing/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ add_library(Testing
Traits/Trait.swift)
target_link_libraries(Testing PRIVATE
_TestingInternals)
target_link_libraries(Testing PUBLIC
dispatch
Foundation)
if(NOT BUILD_SHARED_LIBS)
# When building a static library, tell clients to autolink the internal
# library.
Expand Down

0 comments on commit 8072ea4

Please sign in to comment.