Skip to content

Commit 6cea460

Browse files
committed
Merge pull request #2913 from modocache/stubs-icu-include-fix
[CMake] Include ICU for stubs
2 parents 5384712 + 2385930 commit 6cea460

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

stdlib/public/core/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,6 @@ else()
160160
find_package(ICU REQUIRED COMPONENTS uc i18n)
161161
list(APPEND swift_core_private_link_libraries
162162
${ICU_UC_LIBRARY} ${ICU_I18N_LIBRARY})
163-
include_directories(
164-
${ICU_UC_INCLUDE_DIR} ${ICU_I18N_INCLUDE_DIR})
165163
endif()
166164

167165
if(CMAKE_SYSTEM_NAME STREQUAL "CYGWIN")

stdlib/public/stubs/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@ if(SWIFT_HOST_VARIANT MATCHES "${SWIFT_DARWIN_VARIANTS}")
99
set(LLVM_OPTIONAL_SOURCES
1010
UnicodeNormalization.cpp)
1111
else()
12+
find_package(ICU REQUIRED COMPONENTS uc i18n)
1213
set(swift_stubs_unicode_normalization_sources
1314
UnicodeNormalization.cpp)
15+
include_directories(
16+
${ICU_UC_INCLUDE_DIR} ${ICU_I18N_INCLUDE_DIR})
1417
endif()
1518

1619
add_swift_library(swiftStdlibStubs OBJECT_LIBRARY TARGET_LIBRARY

0 commit comments

Comments
 (0)