You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a project is used through a FetchContent/add_subdirectory, the
`CMAKE_SOURCE_DIR` path points to the calling project. This is resulting
in some of the CI jobs attempting to FetchContent the macros from
`swift-corelibs-foundation/Sources/FoundationMacros`, rather than
`swift-foundation/Sources/FoundationMacros`, ultimately failing the
build.
The `project` call sets a `${CMAKE_PROJECT_NAME}_SOURCE_DIR` variable to
the source directory of the project itself, making it more reliable.
`CMAKE_CURRENT_SOURCE_DIR` would also work here too.
0 commit comments