From dae05ae4eb506cf470aef717e349b8055e8c8e06 Mon Sep 17 00:00:00 2001 From: Finagolfin Date: Mon, 11 Aug 2025 04:26:38 +0530 Subject: [PATCH] [CMake] Don't export module map for Windows, as unneeded after swiftlang/swift#79621 --- icuSources/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/icuSources/CMakeLists.txt b/icuSources/CMakeLists.txt index 4dd9e3b..8bb142e 100644 --- a/icuSources/CMakeLists.txt +++ b/icuSources/CMakeLists.txt @@ -18,8 +18,10 @@ target_include_directories(_FoundationICU PUBLIC include/) -target_compile_options(_FoundationICU INTERFACE - "$<$:SHELL:-Xcc -fmodule-map-file=${CMAKE_CURRENT_SOURCE_DIR}/include/_foundation_unicode/module.modulemap>") +if(NOT CMAKE_SYSTEM_NAME STREQUAL "Windows") + target_compile_options(_FoundationICU INTERFACE + "$<$:SHELL:-Xcc -fmodule-map-file=${CMAKE_CURRENT_SOURCE_DIR}/include/_foundation_unicode/module.modulemap>") +endif() add_subdirectory(common) add_subdirectory(i18n)