File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Sources/_FoundationCShims Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -17,10 +17,13 @@ add_library(_FoundationCShims STATIC
1717 string_shims.c
1818 uuid.c)
1919
20- target_include_directories (_FoundationCShims PUBLIC include )
2120
22- target_compile_options (_FoundationCShims INTERFACE
23- "$<$<COMPILE_LANGUAGE:Swift>:SHELL:-Xcc -fmodule-map-file=${CMAKE_CURRENT_SOURCE_DIR} /include/module.modulemap>" )
21+ if (CMAKE_SYSTEM_NAME STREQUAL "Windows" AND NOT BUILT_FIRST_SDK)
22+ target_include_directories (_FoundationCShims PUBLIC include )
23+
24+ target_compile_options (_FoundationCShims INTERFACE
25+ "$<$<COMPILE_LANGUAGE:Swift>:SHELL:-Xcc -fmodule-map-file=${CMAKE_CURRENT_SOURCE_DIR} /include/module.modulemap>" )
26+ endif ()
2427
2528set_property (GLOBAL APPEND PROPERTY SWIFT_FOUNDATION_EXPORTS _FoundationCShims)
2629
You can’t perform that action at this time.
0 commit comments