diff --git a/cmake/modules/AddSwift.cmake b/cmake/modules/AddSwift.cmake index b6f5b3a58e691..77dd120d46ce8 100644 --- a/cmake/modules/AddSwift.cmake +++ b/cmake/modules/AddSwift.cmake @@ -766,7 +766,8 @@ function(_add_swift_library_single target name) list(GET split_path -1 dir) file(GLOB_RECURSE SWIFTLIB_SINGLE_HEADERS ${SWIFT_SOURCE_DIR}/include/swift${dir}/*.h - ${SWIFT_SOURCE_DIR}/include/swift${dir}/*.def) + ${SWIFT_SOURCE_DIR}/include/swift${dir}/*.def + ${CMAKE_CURRENT_SOURCE_DIR}/*.def) file(GLOB_RECURSE SWIFTLIB_SINGLE_TDS ${SWIFT_SOURCE_DIR}/include/swift${dir}/*.td)