File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -435,15 +435,15 @@ function(add_swift_host_library name)
435
435
endif ()
436
436
437
437
if (XCODE )
438
- string (REGEX MATCHALL "/[^/]+" split_path ${CMAKE_CURRENT_SOURCE_DIR} )
439
- list (GET split_path -1 dir )
438
+ get_filename_component (base_dir ${CMAKE_CURRENT_SOURCE_DIR} NAME )
440
439
441
440
file (GLOB_RECURSE ASHL_HEADERS
442
- ${SWIFT_SOURCE_DIR} /include/swift${dir}/*.h
443
- ${SWIFT_SOURCE_DIR} /include/swift${dir}/*.def
441
+ ${SWIFT_SOURCE_DIR} /include/swift/${base_dir}/*.h
442
+ ${SWIFT_SOURCE_DIR} /include/swift/${base_dir}/*.def
443
+ ${CMAKE_CURRENT_SOURCE_DIR} /*.h
444
444
${CMAKE_CURRENT_SOURCE_DIR} /*.def )
445
445
file (GLOB_RECURSE ASHL_TDS
446
- ${SWIFT_SOURCE_DIR} /include/swift${dir }/*.td )
446
+ ${SWIFT_SOURCE_DIR} /include/swift${base_dir }/*.td )
447
447
448
448
set_source_files_properties (${ASHL_HEADERS} ${ASHL_TDS} PROPERTIES
449
449
HEADER_FILE_ONLY true )
You can’t perform that action at this time.
0 commit comments