File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -938,10 +938,15 @@ function(_add_swift_library_single target name)
938
938
# target_sources(${target}
939
939
# PRIVATE
940
940
# $<TARGET_OBJECTS:swiftImageRegistrationObject${SWIFT_SDK_${SWIFTLIB_SINGLE_SDK}_OBJECT_FORMAT}-${SWIFT_SDK_${SWIFTLIB_SINGLE_SDK}_LIB_SUBDIR}-${SWIFTLIB_SINGLE_ARCHITECTURE}>)
941
+ if (SWIFTLIB_SINGLE_SDK STREQUAL WINDOWS )
942
+ set (extension .obj )
943
+ else ()
944
+ set (extension .o )
945
+ endif ()
941
946
target_sources (${target}
942
947
PRIVATE
943
- "${SWIFTLIB_DIR} /${SWIFTLIB_SINGLE_SUBDIR} /swiftrt${CMAKE_C_OUTPUT_EXTENSION } " )
944
- set_source_files_properties ("${SWIFTLIB_DIR} /${SWIFTLIB_SINGLE_SUBDIR} /swiftrt${CMAKE_C_OUTPUT_EXTENSION } "
948
+ "${SWIFTLIB_DIR} /${SWIFTLIB_SINGLE_SUBDIR} /swiftrt${extension } " )
949
+ set_source_files_properties ("${SWIFTLIB_DIR} /${SWIFTLIB_SINGLE_SUBDIR} /swiftrt${extension } "
945
950
PROPERTIES
946
951
GENERATED 1 )
947
952
endif ()
You can’t perform that action at this time.
0 commit comments