File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -821,7 +821,15 @@ function(_add_swift_library_single target name)
821
821
${SWIFTLIB_SINGLE_XCODE_WORKAROUND_SOURCES} )
822
822
if ("${SWIFT_SDK_${SWIFTLIB_SINGLE_SDK} _OBJECT_FORMAT}" STREQUAL "ELF" AND SWIFTLIB_TARGET_LIBRARY )
823
823
if ("${libkind} " STREQUAL "SHARED" )
824
- target_sources (${target} PRIVATE $< TARGET_OBJECTS:swiftImageRegistrationObject-${SWIFT_SDK_${sdk} _LIB_SUBDIR}-${SWIFTLIB_SINGLE_ARCHITECTURE} > )
824
+ # TODO(compnerd) switch to the generator expression when cmake is upgraded
825
+ # to a version which supports it.
826
+ # target_sources(${target} PRIVATE $<TARGET_OBJECTS:swiftImageRegistrationObject-${SWIFT_SDK_${sdk}_LIB_SUBDIR}-${SWIFTLIB_SINGLE_ARCHITECTURE}>)
827
+ target_sources (${target}
828
+ PRIVATE
829
+ "${SWIFTLIB_DIR} /${SWIFTLIB_SINGLE_SUBDIR} /swiftrt${CMAKE_C_OUTPUT_EXTENSION} " )
830
+ set_source_files_properties ("${SWIFTLIB_DIR} /${SWIFTLIB_SINGLE_SUBDIR} /swiftrt${CMAKE_C_OUTPUT_EXTENSION} "
831
+ PROPERTIES
832
+ GENERATED 1 )
825
833
endif ()
826
834
endif ()
827
835
_set_target_prefix_and_suffix ("${target} " "${libkind} " "${SWIFTLIB_SINGLE_SDK} " )
You can’t perform that action at this time.
0 commit comments