Skip to content

Commit f48c399

Browse files
authored
Add explicit modulemap path to take priority over modulemap from SDK (#789)
1 parent e1223a0 commit f48c399

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Sources/_FoundationCShims/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ add_library(_FoundationCShims STATIC
1919

2020
target_include_directories(_FoundationCShims PUBLIC include)
2121

22+
target_compile_options(_FoundationCShims INTERFACE
23+
"$<$<COMPILE_LANGUAGE:Swift>:SHELL:-Xcc -fmodule-map-file=${CMAKE_CURRENT_SOURCE_DIR}/include/module.modulemap>")
24+
2225
set_property(GLOBAL APPEND PROPERTY SWIFT_FOUNDATION_EXPORTS _FoundationCShims)
2326

2427
if(BUILD_SHARED_LIBS)

0 commit comments

Comments
 (0)