File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -237,16 +237,16 @@ else()
237
237
COMMAND
238
238
"sed"
239
239
-n -e "/header/!d" -e "s/.*header/#include/" -e "w ${CMAKE_CURRENT_BINARY_DIR} /HeaderDependencies.cpp"
240
- "${CMAKE_SOURCE_DIR} /include/swift/module.modulemap"
241
- DEPENDS "${CMAKE_SOURCE_DIR} /include/swift/module.modulemap"
240
+ "${CMAKE_CURRENT_SOURCE_DIR} /.. /include/swift/module.modulemap"
241
+ DEPENDS "${CMAKE_CURRENT_SOURCE_DIR} /.. /include/swift/module.modulemap"
242
242
COMMENT "Generate HeaderDependencies.cpp"
243
243
)
244
244
245
245
# step 2: build a library containing that source file. This library depends on all the included header files.
246
246
# The swift modules can now depend on that target.
247
247
# Note that this library is unused, i.e. not linked to anything.
248
248
add_library (importedHeaderDependencies "${CMAKE_CURRENT_BINARY_DIR} /HeaderDependencies.cpp" )
249
- target_include_directories (importedHeaderDependencies PRIVATE "${CMAKE_SOURCE_DIR} /include/swift" )
249
+ target_include_directories (importedHeaderDependencies PRIVATE "${CMAKE_CURRENT_SOURCE_DIR} /.. /include/swift" )
250
250
251
251
if (${BOOTSTRAPPING_MODE} MATCHES "HOSTTOOLS|CROSSCOMPILE" )
252
252
You can’t perform that action at this time.
0 commit comments