File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -1209,13 +1209,21 @@ function(_add_swift_library_single target name)
1209
1209
NOT "${SWIFT_${SWIFTLIB_SINGLE_SDK} _${SWIFTLIB_SINGLE_ARCHITECTURE} _ICU_UC_INCLUDE}" STREQUAL "/usr/include" AND
1210
1210
NOT "${SWIFT_${SWIFTLIB_SINGLE_SDK} _${SWIFTLIB_SINGLE_ARCHITECTURE} _ICU_UC_INCLUDE}" STREQUAL "/usr/${SWIFT_SDK_${SWIFTLIB_SINGLE_SDK} _ARCH_${SWIFTLIB_SINGLE_ARCHITECTURE} _TRIPLE}/include" AND
1211
1211
NOT "${SWIFT_${SWIFTLIB_SINGLE_SDK} _${SWIFTLIB_SINGLE_ARCHITECTURE} _ICU_UC_INCLUDE}" STREQUAL "/usr/${SWIFT_SDK_${SWIFT_HOST_VARIANT_SDK} _ARCH_${SWIFT_HOST_VARIANT_ARCH} _TRIPLE}/include" )
1212
- target_include_directories ("${target} " SYSTEM PRIVATE "${SWIFT_${SWIFTLIB_SINGLE_SDK} _${SWIFTLIB_SINGLE_ARCHITECTURE} _ICU_UC_INCLUDE}" )
1212
+ if (SWIFT_COMPILER_IS_MSVC_LIKE )
1213
+ list (APPEND c_compile_flags -I;${SWIFT_${SWIFTLIB_SINGLE_SDK}_${SWIFTLIB_SINGLE_ARCHITECTURE}_ICU_UC_INCLUDE} )
1214
+ else ()
1215
+ list (APPEND c_compile_flags -isystem;${SWIFT_${SWIFTLIB_SINGLE_SDK}_${SWIFTLIB_SINGLE_ARCHITECTURE}_ICU_UC_INCLUDE} )
1216
+ endif ()
1213
1217
endif ()
1214
1218
if (NOT "${SWIFT_${SWIFTLIB_SINGLE_SDK} _${SWIFTLIB_SINGLE_ARCHITECTURE} _ICU_I18N_INCLUDE}" STREQUAL "" AND
1215
1219
NOT "${SWIFT_${SWIFTLIB_SINGLE_SDK} _${SWIFTLIB_SINGLE_ARCHITECTURE} _ICU_I18N_INCLUDE}" STREQUAL "/usr/include" AND
1216
1220
NOT "${SWIFT_${SWIFTLIB_SINGLE_SDK} _${SWIFTLIB_SINGLE_ARCHITECTURE} _ICU_I18N_INCLUDE}" STREQUAL "/usr/${SWIFT_SDK_${SWIFTLIB_SINGLE_SDK} _ARCH_${SWIFTLIB_SINGLE_ARCHITECTURE} _TRIPLE}/include" AND
1217
1221
NOT "${SWIFT_${SWIFTLIB_SINGLE_SDK} _${SWIFTLIB_SINGLE_ARCHITECTURE} _ICU_I18N_INCLUDE}" STREQUAL "/usr/${SWIFT_SDK_${SWIFT_HOST_VARIANT_SDK} _ARCH_${SWIFT_HOST_VARIANT_ARCH} _TRIPLE}/include" )
1218
- target_include_directories ("${target} " SYSTEM PRIVATE "${SWIFT_${SWIFTLIB_SINGLE_SDK} _${SWIFTLIB_SINGLE_ARCHITECTURE} _ICU_I18N_INCLUDE}" )
1222
+ if (SWIFT_COMPILER_IS_MSVC_LIKE )
1223
+ list (APPEND c_compile_flags -I;${SWIFT_${SWIFTLIB_SINGLE_SDK}_${SWIFTLIB_SINGLE_ARCHITECTURE}_ICU_I18N_INCLUDE} )
1224
+ else ()
1225
+ list (APPEND c_compile_flags -isystem;${SWIFT_${SWIFTLIB_SINGLE_SDK}_${SWIFTLIB_SINGLE_ARCHITECTURE}_ICU_I18N_INCLUDE} )
1226
+ endif ()
1219
1227
endif ()
1220
1228
endif ()
1221
1229
You can’t perform that action at this time.
0 commit comments