Commit 11485b4
Fix macro source location (swiftlang#910)
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.1 parent 4bc479f commit 11485b4
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
0 commit comments