Skip to content

Commit 45a5c45

Browse files
authored
Merge pull request #289 from apple/eng/BUILD_DATA_fix
[icu] not building BUILD_DATA should still have an install target
2 parents e2ec9a8 + 4c12ddf commit 45a5c45

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

shared/ICU/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,11 @@ target_link_libraries(icuin PRIVATE
547547
set_target_properties(icuin PROPERTIES
548548
OUTPUT_NAME icuin${PROJECT_VERSION_MAJOR})
549549

550-
if(NOT BUILD_DATA)
550+
if(DEFINED BUILD_DATA AND NOT BUILD_DATA)
551+
install(TARGETS icuuc icuin
552+
ARCHIVE DESTINATION ${CMAKE_INSTALL_FULL_LIBDIR}
553+
LIBRARY DESTINATION ${CMAKE_INSTALL_FULL_LIBDIR}
554+
RUNTIME DESTINATION ${CMAKE_INSTALL_FULL_BINDIR})
551555
return()
552556
endif()
553557

0 commit comments

Comments
 (0)